MCPcopy Create free account
hub / github.com/angular/dev-infra / builder

Function builder

ng-dev/commit-message/restore-commit-message/cli.ts:22–33  ·  view source on GitHub ↗

Builds the command.

(argv: Argv)

Source from the content-addressed store, hash-verified

20
21/** Builds the command. */
22function 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. */
36async function handler({fileEnvVariable, file, source}: Arguments<RestoreCommitMessageOptions>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected