refactor: change flags from --merged to --merge

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
djamaile
2023-07-25 10:16:13 +02:00
parent 8ebe96fece
commit 37e07cbe9d
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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)));