MSP-8299 - add new command - config audit
This commit is contained in:
1 parent
7670e2bfe8
commit
af75a06f9e
8 files changed
+586
-6
No files matched your search
@@ -13,6 +13,7 @@ type AutoComplete interface {
|
||||
}
|
||||
|
||||
type ConfigService interface {
|
||||
Audit() ([]model.AuditViolation, error)
|
||||
CreateUpdateConfig(stringToChange string, configuration *model.Config) (map[string]any, error)
|
||||
CreateUpdateConfigV2(configuration *model.Config) (map[string]any, error)
|
||||
DeleteVariable(variableName string) error
|
||||
@@ -37,6 +38,7 @@ func AllCommands(configService ConfigService, autoComplete AutoComplete) []*cli.
|
||||
merge := NewMerge(configService, autoComplete)
|
||||
gitGet := NewGitGet()
|
||||
variables := NewVariables(configService, autoComplete)
|
||||
audit := NewAudit(configService)
|
||||
return []*cli.Command{
|
||||
status.Command(),
|
||||
get.Command(),
|
||||
@@ -46,6 +48,7 @@ func AllCommands(configService ConfigService, autoComplete AutoComplete) []*cli.
|
||||
merge.Command(),
|
||||
gitGet.Command(),
|
||||
variables.Command(),
|
||||
audit.Command(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user