-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
context_create.go
27 lines (21 loc) · 1.01 KB
/
context_create.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var context_createCmd = &cobra.Command{
Use: "create",
Short: "Create a context",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(context_createCmd).Standalone()
context_createCmd.Flags().String("server-addr", "", "Address for the server.")
context_createCmd.Flags().String("server-auth-token", "", "Authentication token to use to connect to the server.")
context_createCmd.Flags().Bool("server-require-auth", false, "If true, will send authentication details.")
context_createCmd.Flags().Bool("server-tls", false, "If true, will connect to the server over TLS.")
context_createCmd.Flags().Bool("server-tls-skip-verify", false, "If true, will not validate TLS cert presented by the server.")
context_createCmd.Flags().Bool("set-default", false, "Set this context as the new default for the CLI. The default is false.")
addGlobalOptions(context_createCmd)
contextCmd.AddCommand(context_createCmd)
}