mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
22 lines
589 B
Go
22 lines
589 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var context_createCmd = &cobra.Command{
|
|
Use: "create [OPTIONS] CONTEXT",
|
|
Short: "Create a context",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(context_createCmd).Standalone()
|
|
|
|
context_createCmd.Flags().String("description", "", "Description of the context")
|
|
context_createCmd.Flags().String("docker", "", "set the docker endpoint")
|
|
context_createCmd.Flags().String("from", "", "create context from a named context")
|
|
contextCmd.AddCommand(context_createCmd)
|
|
}
|