Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KeysCmd = &cobra.Command{
Use: "keys",
Short: "Manage API Keys",
Long: ``,
}
apiCmd represents the api command
View Source
var ListKeysCmd = &cobra.Command{ Use: "list", Short: "List API Keys", Long: ``, Run: func(cmd *cobra.Command, args []string) { fmt.Println("\nAvaialable API Keys") fmt.Println("--------------------") for _, apikey := range config.Current.API.APIKeys { qrCode, err := qrcode.New(apikey, qrcode.Medium) if err != nil { fmt.Printf("Error: %s\n", err) continue } fmt.Println(qrCode.ToString(false)) } }, }
apiCmd represents the api command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.