|
9 | 9 |
|
10 | 10 | // symbol polyfill must go first |
11 | 11 | import 'symbol-observable'; |
12 | | -import { logging, schema, tags } from '@angular-devkit/core'; |
| 12 | +import type { logging, schema } from '@angular-devkit/core'; |
13 | 13 | import { ProcessOutput, createConsoleLogger } from '@angular-devkit/core/node'; |
14 | 14 | import { UnsuccessfulWorkflowExecution } from '@angular-devkit/schematics'; |
15 | 15 | import { NodeWorkflow } from '@angular-devkit/schematics/tools'; |
16 | | -import * as ansiColors from 'ansi-colors'; |
17 | | -import { existsSync } from 'fs'; |
| 16 | +import ansiColors from 'ansi-colors'; |
18 | 17 | import type { Question, QuestionCollection } from 'inquirer'; |
19 | | -import * as path from 'path'; |
| 18 | +import { existsSync } from 'node:fs'; |
| 19 | +import * as path from 'node:path'; |
20 | 20 | import yargsParser, { camelCase, decamelize } from 'yargs-parser'; |
21 | 21 |
|
22 | 22 | /** |
@@ -367,35 +367,35 @@ export async function main({ |
367 | 367 | * Get usage of the CLI tool. |
368 | 368 | */ |
369 | 369 | function getUsage(): string { |
370 | | - return tags.stripIndent` |
371 | | - schematics [collection-name:]schematic-name [options, ...] |
| 370 | + return ` |
| 371 | +schematics [collection-name:]schematic-name [options, ...] |
372 | 372 |
|
373 | | - By default, if the collection name is not specified, use the internal collection provided |
374 | | - by the Schematics CLI. |
| 373 | +By default, if the collection name is not specified, use the internal collection provided |
| 374 | +by the Schematics CLI. |
375 | 375 |
|
376 | | - Options: |
377 | | - --debug Debug mode. This is true by default if the collection is a relative |
378 | | - path (in that case, turn off with --debug=false). |
| 376 | +Options: |
| 377 | + --debug Debug mode. This is true by default if the collection is a relative |
| 378 | + path (in that case, turn off with --debug=false). |
379 | 379 |
|
380 | | - --allow-private Allow private schematics to be run from the command line. Default to |
381 | | - false. |
| 380 | + --allow-private Allow private schematics to be run from the command line. Default to |
| 381 | + false. |
382 | 382 |
|
383 | | - --dry-run Do not output anything, but instead just show what actions would be |
384 | | - performed. Default to true if debug is also true. |
| 383 | + --dry-run Do not output anything, but instead just show what actions would be |
| 384 | + performed. Default to true if debug is also true. |
385 | 385 |
|
386 | | - --force Force overwriting files that would otherwise be an error. |
| 386 | + --force Force overwriting files that would otherwise be an error. |
387 | 387 |
|
388 | | - --list-schematics List all schematics from the collection, by name. A collection name |
389 | | - should be suffixed by a colon. Example: '@angular-devkit/schematics-cli:'. |
| 388 | + --list-schematics List all schematics from the collection, by name. A collection name |
| 389 | + should be suffixed by a colon. Example: '@angular-devkit/schematics-cli:'. |
390 | 390 |
|
391 | | - --no-interactive Disables interactive input prompts. |
| 391 | + --no-interactive Disables interactive input prompts. |
392 | 392 |
|
393 | | - --verbose Show more information. |
| 393 | + --verbose Show more information. |
394 | 394 |
|
395 | | - --help Show this message. |
| 395 | + --help Show this message. |
396 | 396 |
|
397 | | - Any additional option is passed to the Schematics depending on its schema. |
398 | | - `; |
| 397 | +Any additional option is passed to the Schematics depending on its schema. |
| 398 | +`; |
399 | 399 | } |
400 | 400 |
|
401 | 401 | /** Parse the command line. */ |
|
0 commit comments