Skip to content

Commit

Permalink
fix: added stub for certs:auto:wait
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jun 19, 2018
1 parent e9953e6 commit 459846e
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 45 deletions.
1 change: 1 addition & 0 deletions packages/heroku-cli-plugin-certs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/heroku/heroku-cli-plugin-certs/issues",
"dependencies": {
"@heroku-cli/command": "^8.1.18",
"@oclif/command": "^1",
"@oclif/config": "^1",
"tslib": "^1"
Expand Down
14 changes: 14 additions & 0 deletions packages/heroku-cli-plugin-certs/src/commands/certs/auto/wait.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {Command, flags} from '@oclif/command'

export default class CertsAutoWait extends Command {
static description = 'waits for the certificate to be activated'
static hidden = true

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

async run() {
this.parse(CertsAutoWait)
}
}
31 changes: 0 additions & 31 deletions packages/heroku-cli-plugin-certs/src/commands/hello.ts

This file was deleted.

16 changes: 3 additions & 13 deletions packages/heroku-cli-plugin-certs/test/commands/hello.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import {expect, test} from '@oclif/test'
import {test} from '@oclif/test'

describe('hello', () => {
describe('certs:auto:wait', () => {
test
.stdout()
.command(['hello'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})

test
.stdout()
.command(['hello', '--name', 'jeff'])
.it('runs hello --name jeff', ctx => {
expect(ctx.stdout).to.contain('hello jeff')
})
.it('runs certs:auto:wait', () => { })
})
48 changes: 47 additions & 1 deletion packages/heroku-cli-plugin-certs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@
reflect-metadata "^0.1.12"
tslib "^1.8.1"

"@heroku-cli/color@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@heroku-cli/color/-/color-1.1.5.tgz#d98781513f8daebb21aaaf54c9e8d497db3efcfb"
dependencies:
ansi-styles "^3.2.1"
chalk "^2.4.1"
strip-ansi "^4.0.0"
supports-color "^5.4.0"

"@heroku-cli/command@^8.1.18":
version "8.1.18"
resolved "https://registry.yarnpkg.com/@heroku-cli/command/-/command-8.1.18.tgz#aef5e327ebfd05f0f236730ffc578db8f1183fe0"
dependencies:
"@heroku-cli/color" "^1.1.5"
"@oclif/errors" "^1.1.1"
cli-ux "^4.3.0"
debug "^3.1.0"
heroku-client "^3.0.6"
http-call "^5.1.2"
netrc-parser "^3.1.4"
opn "^5.3.0"

"@mrmlnc/readdir-enhanced@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
Expand Down Expand Up @@ -961,6 +983,13 @@ he@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"

heroku-client@^3.0.6:
version "3.0.6"
resolved "https://registry.yarnpkg.com/heroku-client/-/heroku-client-3.0.6.tgz#bf603716a9d469682d4f7f80489276d82b896305"
dependencies:
is-retry-allowed "^1.0.0"
tunnel-agent "^0.6.0"

hosted-git-info@^2.1.4:
version "2.6.0"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222"
Expand Down Expand Up @@ -1138,7 +1167,7 @@ is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
dependencies:
isobject "^3.0.1"

is-retry-allowed@^1.1.0:
is-retry-allowed@^1.0.0, is-retry-allowed@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"

Expand All @@ -1154,6 +1183,10 @@ is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

is-wsl@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"

isarray@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
Expand Down Expand Up @@ -1478,6 +1511,13 @@ nanomatch@^1.2.9:
snapdragon "^0.8.1"
to-regex "^3.0.1"

netrc-parser@^3.1.4:
version "3.1.5"
resolved "https://registry.yarnpkg.com/netrc-parser/-/netrc-parser-3.1.5.tgz#77937b6feb27f8dda143d38fac6bbdbcafd480a7"
dependencies:
debug "^3.1.0"
execa "^0.10.0"

nice-try@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4"
Expand Down Expand Up @@ -1563,6 +1603,12 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
dependencies:
wrappy "1"

opn@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.3.0.tgz#64871565c863875f052cfdf53d3e3cb5adb53b1c"
dependencies:
is-wsl "^1.1.0"

optimist@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
Expand Down

0 comments on commit 459846e

Please sign in to comment.