* Show usage of the CLI tool, and exit the process.
(logger: logging.Logger, exitCode = 0)
| 42 | * Show usage of the CLI tool, and exit the process. |
| 43 | */ |
| 44 | function usage(logger: logging.Logger, exitCode = 0): never { |
| 45 | logger.info(tags.stripIndent` |
| 46 | architect [project][:target][:configuration] [options, ...] |
| 47 | |
| 48 | Run a project target. |
| 49 | If project/target/configuration are not specified, the workspace defaults will be used. |
| 50 | |
| 51 | Options: |
| 52 | --help Show available options for project target. |
| 53 | Shows this message instead when ran without the run argument. |
| 54 | |
| 55 | |
| 56 | Any additional option is passed the target, overriding existing options. |
| 57 | `); |
| 58 | |
| 59 | return process.exit(exitCode); |
| 60 | } |
| 61 | |
| 62 | async function _executeTarget( |
| 63 | parentLogger: logging.Logger, |