MCPcopy Create free account
hub / github.com/compozy/agh / newConfigCommand

Function newConfigCommand

internal/cli/config.go:336–352  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

334)
335
336func newConfigCommand(deps commandDeps) *cobra.Command {
337 cmd := &cobra.Command{
338 Use: configConfigKey,
339 Short: "Inspect and mutate AGH configuration",
340 }
341 cmd.AddCommand(newConfigShowCommand(deps))
342 cmd.AddCommand(newConfigListCommand(deps))
343 cmd.AddCommand(newConfigGetCommand(deps))
344 cmd.AddCommand(newConfigSetCommand(deps))
345 cmd.AddCommand(newConfigPathCommand(deps))
346 cmd.AddCommand(newConfigValidateCommand(deps))
347 cmd.AddCommand(newConfigCheckCommand(deps))
348 cmd.AddCommand(newConfigEditCommand(deps))
349 cmd.AddCommand(newConfigReloadCommand(deps))
350 cmd.AddCommand(newConfigApplyHistoryCommand(deps))
351 return cmd
352}
353
354func newConfigShowCommand(deps commandDeps) *cobra.Command {
355 var workspaceRoot string

Callers 1

newRootCommandFunction · 0.85

Calls 10

newConfigShowCommandFunction · 0.85
newConfigListCommandFunction · 0.85
newConfigGetCommandFunction · 0.85
newConfigSetCommandFunction · 0.85
newConfigPathCommandFunction · 0.85
newConfigValidateCommandFunction · 0.85
newConfigCheckCommandFunction · 0.85
newConfigEditCommandFunction · 0.85
newConfigReloadCommandFunction · 0.85

Tested by

no test coverage detected