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

Function builder

ng-dev/pr/rebase/cli.ts:22–31  ·  view source on GitHub ↗

Builds the rebase pull request command.

(argv: Argv)

Source from the content-addressed store, hash-verified

20
21/** Builds the rebase pull request command. */
22function builder(argv: Argv): Argv<RebaseOptions> {
23 return addGithubTokenOption(argv)
24 .positional('pr', {type: 'number', demandOption: true})
25 .option('interactive', {
26 type: 'boolean',
27 alias: ['i'],
28 demandOption: false,
29 describe: 'Do the rebase interactively so that things can be squashed and amended',
30 });
31}
32
33/** Handles the rebase pull request command. */
34async function handler({pr, i}: Arguments<RebaseOptions>) {

Callers

nothing calls this directly

Calls 1

addGithubTokenOptionFunction · 0.85

Tested by

no test coverage detected