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

Function builder

ng-dev/perf/workflow/cli.ts:25–45  ·  view source on GitHub ↗

Builds the checkout pull request command.

(yargs: Argv)

Source from the content-addressed store, hash-verified

23
24/** Builds the checkout pull request command. */
25function builder(yargs: Argv) {
26 return yargs
27 .option('config-file' as 'configFile', {
28 default: '.ng-dev/dx-perf-workflows.yml',
29 type: 'string',
30 description: 'The path to the workflow definitions in a yml file',
31 })
32 .option('list', {
33 default: false,
34 type: 'boolean',
35 description: 'Whether to get back a list of workflows that can be executed',
36 })
37 .option('name', {
38 type: 'string',
39 description: 'A specific workflow to run by name',
40 })
41 .option('commit-sha' as 'commitSha', {
42 type: 'string',
43 description: 'The commit sha to associate the measurement with, uploading it to our database',
44 });
45}
46
47/** Handles the checkout pull request command. */
48async function handler({configFile, list, name, commitSha}: WorkflowsParams) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected