MCPcopy Create free account
hub / github.com/LunaSource/Luna / init

Function init

cmd/config.go:25–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 },
24}
25
26func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected