Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "set", Short: "Set Cloudflare Access Service Token", Args: cobra.ExactArgs(1), Run: func(c *cobra.Command, args []string) { key := args[0] clientID := FlagClientID clientSecret := FlagClientSecret if clientID == "" { fmt.Print("CLIENT_ID:") clientID = readPasswordOrDie() } if clientSecret == "" { fmt.Print("CLIENT_SECRET:") clientSecret = readPasswordOrDie() } err := vault_cfa_service_token.Set(key, clientID, clientSecret) if err != nil { log.Fatal(err) } }, }
View Source
var FlagClientID string
View Source
var FlagClientSecret string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.