(deps commandDeps)
| 334 | ) |
| 335 | |
| 336 | func 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 | |
| 354 | func newConfigShowCommand(deps commandDeps) *cobra.Command { |
| 355 | var workspaceRoot string |
no test coverage detected