cli: add missing --format option to config:schema.

Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
This commit is contained in:
Andreas Stenius
2021-03-01 17:34:51 +01:00
parent 9d8515ba68
commit 2edd4614de
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -501,9 +501,9 @@ Usage: backstage-cli config:schema [options]
Print configuration schema
Options:
--package &lt;name&gt; Only output config schema that applies to the given package
-h, --help display help for command
--package &lt;name&gt; Only output config schema that applies to the given package
--format &lt;format&gt; Format to print the schema in, either json or yaml [yaml]
-h, --help display help for command
```
## versions:bump
+4
View File
@@ -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)));