refactor: change flags from --merged to --merge
Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Enable to print the config schema non merged with the `--no-merged` flag
|
||||
Enable to print the config schema not merged with the `--no-merge` flag
|
||||
|
||||
@@ -97,8 +97,8 @@ Usage: backstage-cli config:schema [options]
|
||||
Options:
|
||||
--package <name>
|
||||
--format <format>
|
||||
--merged
|
||||
--no-merged
|
||||
--merge
|
||||
--no-merge
|
||||
-h, --help
|
||||
```
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export default async (opts: OptionValues) => {
|
||||
});
|
||||
|
||||
let configSchema: JsonObject | JSONSchema;
|
||||
if (opts.merged) {
|
||||
if (opts.merge) {
|
||||
configSchema = mergeConfigSchemas(
|
||||
(schema.serialize().schemas as JsonObject[]).map(
|
||||
_ => _.value as JSONSchema,
|
||||
|
||||
@@ -365,8 +365,8 @@ export function registerCommands(program: Command) {
|
||||
'--format <format>',
|
||||
'Format to print the schema in, either json or yaml [yaml]',
|
||||
)
|
||||
.option('--merged', 'Print the config schemas merged', true)
|
||||
.option('--no-merged', 'Print the config schemas not merged')
|
||||
.option('--merge', 'Print the config schemas merged', true)
|
||||
.option('--no-merge', 'Print the config schemas not merged')
|
||||
.description('Print configuration schema')
|
||||
.action(lazy(() => import('./config/schema').then(m => m.default)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user