refactor: change flags from --merged to --merge
Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
@@ -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