(args: Argv)
| 25 | } |
| 26 | |
| 27 | function builder(args: Argv): Argv<Options> { |
| 28 | return args |
| 29 | .option('mode', { |
| 30 | demandOption: true, |
| 31 | description: 'Whether the env-stamp should be built for a snapshot or release', |
| 32 | choices: ['snapshot' as const, 'release' as const], |
| 33 | }) |
| 34 | .option('includeVersion', { |
| 35 | type: 'boolean', |
| 36 | description: 'Whether the version should be included in the stamp.', |
| 37 | default: true, |
| 38 | }) |
| 39 | .option('additionalStampingScript', { |
| 40 | type: 'string', |
| 41 | description: |
| 42 | 'Working-dir relative or absolute path to an ESM script which can ' + |
| 43 | 'print additional stamping variables', |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | async function handler({mode, includeVersion, additionalStampingScript}: Arguments<Options>) { |
| 48 | await printEnvStamp(mode, includeVersion); |
nothing calls this directly
no outgoing calls
no test coverage detected