Add native configuration display
This commit is contained in:
@@ -80,6 +80,9 @@ func selectConfigScopes[C any](suite ConfigSuite[C], input configInput[C], opera
|
||||
if err := checkConfigFormat(input.Format); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if operation == ConfigShow && input.Format != "yaml" {
|
||||
return nil, fmt.Errorf("unsupported configuration show format %q", input.Format)
|
||||
}
|
||||
if input.Scope == "all" {
|
||||
if operation != ConfigValidate && operation != ConfigShow {
|
||||
return nil, fmt.Errorf("scope all is supported only for validate and show")
|
||||
|
||||
Reference in New Issue
Block a user