()
| 23 | }, |
| 24 | } |
| 25 | |
| 26 | func init() { |
| 27 | rootCmd.AddCommand(configCmd) |
| 28 | configCmd.SetUsageFunc(func(cmd *cobra.Command) error { |
| 29 | fmt.Println(style.Accent("Usage:")) |
| 30 | fmt.Println(" luna config [init|show|edit]") |
| 31 | fmt.Println() |
| 32 | fmt.Println(style.Accent("Arguments:")) |
| 33 | fmt.Println(" init Create the configuration file") |
| 34 | fmt.Println(" show Display the current configuration") |
| 35 | fmt.Println(" edit Edit the project configuration") |
| 36 | fmt.Println() |
| 37 | fmt.Println(style.Accent("Config Priority:")) |
| 38 | fmt.Println(" " + style.IconAngleRight + " API Key & Model: Global > Project > Default") |
| 39 | fmt.Println(" " + style.IconAngleRight + " Other settings: Project > Default") |
| 40 | fmt.Println() |
| 41 | // fmt.Println("Flags:") |
| 42 | // cmd.Flags().PrintDefaults() |
| 43 | return nil |
| 44 | }) |
| 45 | } |
nothing calls this directly
no outgoing calls
no test coverage detected