Yargs command builder for the command.
(argv: Argv)
| 19 | |
| 20 | /** Yargs command builder for the command. */ |
| 21 | function builder(argv: Argv): Argv<Options> { |
| 22 | return argv |
| 23 | .option('check', { |
| 24 | type: 'boolean', |
| 25 | default: process.env['CI'] ? true : false, |
| 26 | description: 'Run the formatter to check formatting rather than updating code format', |
| 27 | }) |
| 28 | .positional('files', {array: true, type: 'string', demandOption: true}); |
| 29 | } |
| 30 | |
| 31 | /** Yargs command handler for the command. */ |
| 32 | async function handler({files, check}: Arguments<Options>) { |
nothing calls this directly
no outgoing calls
no test coverage detected