keys

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL