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

Method configValidateCommand

internal/cli/config_cmd.go:84–99  ·  view source on GitHub ↗
(state *globalState)

Source from the content-addressed store, hash-verified

82}
83
84func (a *App) configValidateCommand(state *globalState) *cobra.Command {
85 return &cobra.Command{
86 Use: "validate",
87 Short: "Validate configuration",
88 Args: cobra.NoArgs,
89 RunE: func(cmd *cobra.Command, args []string) error {
90 if state.configPath != "" {
91 if _, err := loadConfigFile(state.configPath); err != nil {
92 return err
93 }
94 }
95 fmt.Fprintln(cmd.OutOrStdout(), "Configuration is valid")
96 return nil
97 },
98 }
99}
100
101func (a *App) configShowCommand(state *globalState) *cobra.Command {
102 var app string

Callers 1

configCommandMethod · 0.95

Calls 1

loadConfigFileFunction · 0.85

Tested by

no test coverage detected