heroku-cli-util
Advanced tools
Comparing version 6.0.15 to 6.0.16
@@ -11,3 +11,4 @@ 'use strict' | ||
if (!process.stderr.isTTY) return 80 | ||
return process.stderr.getWindowSize()[0] | ||
let width = process.stderr.getWindowSize()[0] | ||
return width < 30 ? 30 : width | ||
} | ||
@@ -14,0 +15,0 @@ |
@@ -30,4 +30,8 @@ 'use strict' | ||
exit.mock = function () { | ||
mocking = true | ||
exit.mock = function (mock) { | ||
if (mock === false) { | ||
mocking = false | ||
} else { | ||
mocking = true | ||
} | ||
} | ||
@@ -34,0 +38,0 @@ |
@@ -17,3 +17,3 @@ 'use strict' | ||
stderr.write(ansi.cursorLeft) | ||
stderr.write(options.prompt) | ||
cli.console.writeError(options.prompt) | ||
stdin.resume() | ||
@@ -88,3 +88,3 @@ stdin.setRawMode(true) | ||
process.stdin.setEncoding('utf8') | ||
process.stderr.write(options.prompt) | ||
cli.console.writeError(options.prompt) | ||
process.stdin.resume() | ||
@@ -91,0 +91,0 @@ process.stdin.once('data', function (data) { |
{ | ||
"name": "heroku-cli-util", | ||
"description": "Set of helpful CLI utilities", | ||
"version": "6.0.15", | ||
"version": "6.0.16", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -74,2 +74,4 @@ # heroku-cli-util [![Circle CI](https://circleci.com/gh/heroku/heroku-cli-util/tree/master.svg?style=svg)](https://circleci.com/gh/heroku/heroku-cli-util/tree/master) | ||
Note that you will still need to define a `confirm` flag for your command. | ||
## Errors | ||
@@ -229,3 +231,3 @@ | ||
return co(function* () { | ||
let app = yield heroku.apps(context.app).info(); | ||
let app = yield heroku.get(`/apps/${context.app}`); | ||
console.dir(app); | ||
@@ -253,3 +255,3 @@ }); | ||
return co(function* () { | ||
let app = yield heroku.apps(context.app).info(); | ||
let app = yield heroku.get(`/apps/${context.app}`); | ||
console.dir(app); | ||
@@ -256,0 +258,0 @@ }); |
266756
2703
275