Skip to content

Commit

Permalink
Merge branch 'master' of github.com:heroku/heroku-cli-addons-admin in…
Browse files Browse the repository at this point in the history
…to amanmibra-open
  • Loading branch information
amanmibra committed Aug 3, 2018
2 parents 3c03b51 + a59b827 commit 588e0b9
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Heroku CLI plugin to help Heroku add-on providers integrate their services with
# Usage
<!-- usage -->
```sh-session
$ npm install -g @heroku-cli/plugin-addons-admin
$ heroku COMMAND
running command...
$ heroku (-v|--version|version)
Expand Down
14 changes: 14 additions & 0 deletions src/commands/addons/admin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* tslint:disable */
import {Command, flags} from '@oclif/command'

export default class AddonsAdmin extends Command {
static description = 'create and manage add-ons'

static flags = {
help: flags.help({char: 'h'})
}

async run() {
this._help();
}
}
14 changes: 14 additions & 0 deletions src/commands/addons/admin/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* tslint:disable */
import {Command, flags} from '@oclif/command'

export default class AddonsAdminManifest extends Command {
static description = 'manage add-on manifests'

static flags = {
help: flags.help({char: 'h'})
}

async run() {
this._help();
}
}
18 changes: 18 additions & 0 deletions test/commands/addons/admin.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* tslint:disable */
// import {expect, test} from '@oclif/test'
//
// describe('addons:admin', () => {
// test
// .stdout()
// .command(['addons:admin'])
// .it('runs hello', ctx => {
// expect(ctx.stdout).to.contain('hello world')
// })
//
// test
// .stdout()
// .command(['addons:admin', '--name', 'jeff'])
// .it('runs hello --name jeff', ctx => {
// expect(ctx.stdout).to.contain('hello jeff')
// })
// })
18 changes: 18 additions & 0 deletions test/commands/addons/admin/manifest.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* tslint:disable */
// import {expect, test} from '@oclif/test'
//
// describe('addons:admin:manifest', () => {
// test
// .stdout()
// .command(['addons:admin:manifest'])
// .it('runs hello', ctx => {
// expect(ctx.stdout).to.contain('hello world')
// })
//
// test
// .stdout()
// .command(['addons:admin:manifest', '--name', 'jeff'])
// .it('runs hello --name jeff', ctx => {
// expect(ctx.stdout).to.contain('hello jeff')
// })
// })

0 comments on commit 588e0b9

Please sign in to comment.