Add native configuration display

This commit is contained in:
2026-10-07 13:55:43 +00:00
parent 3945f1c33a
commit bbd862311e
9 changed files with 351 additions and 10 deletions

View File

@@ -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")