Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenerateCmd = &cobra.Command{ Use: "generate", Short: "Generate Key for your chosen backend (opens browser)", Long: `Opens your browser to generate a key for your chosen backend.`, Run: func(cmd *cobra.Command, args []string) { backendType = viper.GetString("backend_type") if backendType == "" { backend = "openai" } if backend != "" { backendType = backend } fmt.Println("") openbrowser("https://platform.openai.com/api-keys") }, }
generateCmd represents the auth command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.