Builds the command.
(argv: Argv)
| 20 | |
| 21 | /** Builds the command. */ |
| 22 | function builder(argv: Argv) { |
| 23 | return argv |
| 24 | .option('file-env-variable' as 'fileEnvVariable', { |
| 25 | type: 'string', |
| 26 | description: |
| 27 | 'The key for the environment variable which holds the arguments for the\n' + |
| 28 | 'prepare-commit-msg hook as described here:\n' + |
| 29 | 'https://git-scm.com/docs/githooks#_prepare_commit_msg', |
| 30 | }) |
| 31 | .positional('file', {type: 'string'}) |
| 32 | .positional('source', {type: 'string'}); |
| 33 | } |
| 34 | |
| 35 | /** Handles the command. */ |
| 36 | async function handler({fileEnvVariable, file, source}: Arguments<RestoreCommitMessageOptions>) { |
nothing calls this directly
no outgoing calls
no test coverage detected