MCPcopy Index your code
hub / github.com/angular/angular-cli / getUsage

Function getUsage

packages/angular_devkit/schematics_cli/bin/schematics.ts:414–444  ·  view source on GitHub ↗

* Get usage of the CLI tool.

()

Source from the content-addressed store, hash-verified

412 * Get usage of the CLI tool.
413 */
414function getUsage(): string {
415 return `
416schematics [collection-name:]schematic-name [options, ...]
417
418By default, if the collection name is not specified, use the internal collection provided
419by the Schematics CLI.
420
421Options:
422 --debug Debug mode. This is true by default if the collection is a relative
423 path (in that case, turn off with --debug=false).
424
425 --allow-private Allow private schematics to be run from the command line. Default to
426 false.
427
428 --dry-run Do not output anything, but instead just show what actions would be
429 performed. Default to true if debug is also true.
430
431 --force Force overwriting files that would otherwise be an error.
432
433 --list-schematics List all schematics from the collection, by name. A collection name
434 should be suffixed by a colon. Example: '@angular-devkit/schematics-cli:'.
435
436 --no-interactive Disables interactive input prompts.
437
438 --verbose Show more information.
439
440 --help Show this message.
441
442Any additional option is passed to the Schematics depending on its schema.
443`;
444}
445
446const CLI_OPTION_DEFINITIONS = {
447 'allow-private': { type: 'boolean' },

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected