Merge pull request #4745 from kaos/kaos/cli-config-schema-format
cli: add missing --format option to config:schema.
This commit is contained in:
@@ -501,9 +501,9 @@ Usage: backstage-cli config:schema [options]
|
||||
Print configuration schema
|
||||
|
||||
Options:
|
||||
--package <name> Only output config schema that applies to the given package
|
||||
-h, --help display help for command
|
||||
|
||||
--package <name> Only output config schema that applies to the given package
|
||||
--format <format> Format to print the schema in, either json or yaml [yaml]
|
||||
-h, --help display help for command
|
||||
```
|
||||
|
||||
## versions:bump
|
||||
|
||||
@@ -176,6 +176,10 @@ export function registerCommands(program: CommanderStatic) {
|
||||
'--package <name>',
|
||||
'Only output config schema that applies to the given package',
|
||||
)
|
||||
.option(
|
||||
'--format <format>',
|
||||
'Format to print the schema in, either json or yaml [yaml]',
|
||||
)
|
||||
.description('Print configuration schema')
|
||||
.action(lazy(() => import('./config/schema').then(m => m.default)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user