Builds the checkout pull request command.
(yargs: Argv)
| 23 | |
| 24 | /** Builds the checkout pull request command. */ |
| 25 | function 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. */ |
| 48 | async function handler({configFile, list, name, commitSha}: WorkflowsParams) { |
nothing calls this directly
no outgoing calls
no test coverage detected