MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / configCommand

Method configCommand

internal/cli/config_cmd.go:26–38  ·  view source on GitHub ↗

configCommand wires `cam config `. Two modes: 1. Legacy CAM-config mode: `--config ` (without `--app`) operates on the YAML/JSON/TOML file at that path. 2. Editor mode: `--app ` operates on the per-editor config files through the editorconfig.Registry.

(state *globalState)

Source from the content-addressed store, hash-verified

24// 2. Editor mode: `--app <editor>` operates on the per-editor config files
25// through the editorconfig.Registry.
26func (a *App) configCommand(state *globalState) *cobra.Command {
27 cmd := &cobra.Command{
28 Use: "config",
29 Aliases: []string{"cf"},
30 Short: "Manage CAM and editor configuration files",
31 }
32 cmd.AddCommand(a.configListCommand(state))
33 cmd.AddCommand(a.configValidateCommand(state))
34 cmd.AddCommand(a.configShowCommand(state))
35 cmd.AddCommand(a.configSetCommand(state))
36 cmd.AddCommand(a.configUnsetCommand(state))
37 return cmd
38}
39
40func (a *App) configListCommand(state *globalState) *cobra.Command {
41 return &cobra.Command{

Callers 1

rootCommandMethod · 0.95

Calls 5

configListCommandMethod · 0.95
configValidateCommandMethod · 0.95
configShowCommandMethod · 0.95
configSetCommandMethod · 0.95
configUnsetCommandMethod · 0.95

Tested by

no test coverage detected