1 | const cli = require('heroku-cli-util')
|
2 | const co = require('co')
|
3 | const api = require('../../lib/heroku-api')
|
4 | const TestRun = require('../../lib/test-run')
|
5 |
|
6 | function* run (context, heroku) {
|
7 | const coupling = yield api.pipelineCoupling(heroku, context.app)
|
8 | return yield TestRun.displayAndExit(coupling.pipeline, context.args.number, { heroku })
|
9 | }
|
10 |
|
11 | module.exports = {
|
12 | topic: 'ci',
|
13 | command: 'info',
|
14 | needsApp: true,
|
15 | needsAuth: true,
|
16 | args: [
|
17 | {
|
18 | name: 'number',
|
19 | description: 'the test run number to show'
|
20 | }
|
21 | ],
|
22 | description: 'test run information',
|
23 | help: 'show the status of a specific test run',
|
24 | run: cli.command(co.wrap(run))
|
25 | }
|