Skip to content

Commit

Permalink
made descriptions consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanm3341 committed Nov 11, 2024
1 parent c9cfdc8 commit cafa4b3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,19 @@ program
.description('Generate an instantiation from a CALM pattern file.')
.requiredOption(PATTERN_OPTION, 'Path to the pattern file to use. May be a file path or a URL.')
.requiredOption(OUTPUT_OPTION, 'Path location at which to output the generated file.', 'instantiation.json')
.option(SCHEMAS_OPTION, 'Path to directory containing schemas to use in instantiation')
.option(SCHEMAS_OPTION, 'Path to the directory containing the meta schemas to use.')
.option(VERBOSE_OPTION, 'Enable verbose logging.', false)
.option(INSTANTIATE_ALL_OPTION, 'Instantiate all properties, ignoring the "required" field.', false)
.action(async (options) => {
await runGenerate(options.pattern, options.output, !!options.verbose, options.instantiateAll, options.schemaDirectory
);
});
.action(async (options) =>
await runGenerate(options.pattern, options.output, !!options.verbose, options.instantiateAll, options.schemaDirectory)
);

program
.command('validate')
.description('Validate that an instantiation conforms to a given CALM pattern.')
.requiredOption(PATTERN_OPTION, 'Path to the pattern file to use. May be a file path or a URL.')
.option(INSTANTIATION_OPTION, 'Path to the pattern instantiation file to use. May be a file path or a URL.')
.option(SCHEMAS_OPTION, 'The location of the directory of the meta schemas to be loaded', CALM_META_SCHEMA_DIRECTORY)
.option(SCHEMAS_OPTION, 'Path to the directory containing the meta schemas to use.', CALM_META_SCHEMA_DIRECTORY)
.option(STRICT_OPTION, 'When run in strict mode, the CLI will fail if any warnings are reported.', false)
.addOption(
new Option(FORMAT_OPTION, 'The format of the output')
Expand Down

0 comments on commit cafa4b3

Please sign in to comment.