@heroku-cli/plugin-run
Advanced tools
Comparing version 7.41.1 to 7.42.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [7.42.2](https://github.com/heroku/cli/compare/v7.42.1...v7.42.2) (2020-06-22) | ||
### Bug Fixes | ||
* **run:** error messages & exiting ([#1547](https://github.com/heroku/cli/issues/1547)) ([9e3e2f6](https://github.com/heroku/cli/commit/9e3e2f60b16c5f710820e7860749f28d066ce9d0)) | ||
## [7.41.1](https://github.com/heroku/cli/compare/v7.41.0...v7.41.1) (2020-05-12) | ||
@@ -8,0 +19,0 @@ |
@@ -28,5 +28,3 @@ "use strict"; | ||
if (error.exitCode) { | ||
cli_ux_1.default.error(error); | ||
// eslint-disable-next-line unicorn/no-process-exit, no-process-exit | ||
process.exit(error.exitCode); | ||
cli_ux_1.default.error(error, { exit: error.exitCode }); | ||
} | ||
@@ -33,0 +31,0 @@ else { |
@@ -232,8 +232,9 @@ "use strict"; | ||
if (lastErr.length > 0 && lastErr.includes('Permission denied')) { | ||
cli_ux_1.default.error('There was a problem connecting to the dyno.'); | ||
const msgs = ['There was a problem connecting to the dyno.']; | ||
if (process.env.SSH_AUTH_SOCK) { | ||
cli_ux_1.default.error('Confirm that your ssh key is added to your agent by running `ssh-add`.'); | ||
msgs.push('Confirm that your ssh key is added to your agent by running `ssh-add`.'); | ||
} | ||
cli_ux_1.default.error('Check that your ssh key has been uploaded to heroku with `heroku keys:add`.'); | ||
cli_ux_1.default.error(`See ${color_1.default.cyan('https://devcenter.heroku.com/articles/one-off-dynos#shield-private-spaces')}`); | ||
msgs.push('Check that your ssh key has been uploaded to heroku with `heroku keys:add`.'); | ||
msgs.push(`See ${color_1.default.cyan('https://devcenter.heroku.com/articles/one-off-dynos#shield-private-spaces')}`); | ||
cli_ux_1.default.error(msgs.join('\n')); | ||
} | ||
@@ -321,5 +322,3 @@ // cleanup local server | ||
if (sigints.length >= 4) { | ||
cli_ux_1.default.error('forcing dyno disconnect'); | ||
// eslint-disable-next-line unicorn/no-process-exit, no-process-exit | ||
process.exit(1); | ||
cli_ux_1.default.error('forcing dyno disconnect', { exit: 1 }); | ||
} | ||
@@ -326,0 +325,0 @@ }); |
@@ -67,5 +67,3 @@ "use strict"; | ||
else { | ||
cli_ux_1.default.error(err.stack); | ||
// eslint-disable-next-line unicorn/no-process-exit, no-process-exit | ||
process.exit(1); | ||
cli_ux_1.default.error(err.stack, { exit: 1 }); | ||
} | ||
@@ -72,0 +70,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
{"version":"7.41.1","commands":{"console":{"id":"console","pluginName":"@heroku-cli/plugin-run","pluginType":"core","hidden":true,"aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"}},"args":[]},"logs":{"id":"logs","description":"display recent log output\ndisable colors with --no-color, HEROKU_LOGS_COLOR=0, or HEROKU_COLOR=0","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku logs --app=my-app","$ heroku logs --num=50","$ heroku logs --dyno=web --app=my-app","$ heroku logs --app=my-app --tail"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"num":{"name":"num","type":"option","char":"n","description":"number of lines to display"},"ps":{"name":"ps","type":"option","char":"p","description":"hidden alias for dyno","hidden":true},"dyno":{"name":"dyno","type":"option","char":"d","description":"only show output from this dyno type (such as \"web\" or \"worker\")"},"source":{"name":"source","type":"option","char":"s","description":"only show output from this source (such as \"app\" or \"heroku\")"},"tail":{"name":"tail","type":"boolean","char":"t","description":"continually stream logs","allowNo":false},"force-colors":{"name":"force-colors","type":"boolean","description":"force use of colors (even on non-tty output)","allowNo":false}},"args":[]},"rake":{"id":"rake","pluginName":"@heroku-cli/plugin-run","pluginType":"core","hidden":true,"aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"parent app used by review apps","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"no-tty":{"name":"no-tty","type":"boolean","description":"force the command to not run in a tty","allowNo":false}},"args":[]},"run:detached":{"id":"run:detached","description":"run a detached dyno, where output is sent to your logs","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run:detached ls"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"tail":{"name":"tail","type":"boolean","char":"t","description":"continually stream logs","allowNo":false},"type":{"name":"type","type":"option","description":"process type"}},"args":[]},"run":{"id":"run","description":"run a one-off process inside a heroku dyno\nShows a notification if the dyno takes more than 20 seconds to start.","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run bash","$ heroku run -s hobby -- myscript.sh -a arg1 -s arg2"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"parent app used by review apps","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"type":{"name":"type","type":"option","description":"process type"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"no-tty":{"name":"no-tty","type":"boolean","description":"force the command to not run in a tty","allowNo":false},"listen":{"name":"listen","type":"boolean","description":"listen on a local port","hidden":true,"allowNo":false},"no-notify":{"name":"no-notify","type":"boolean","description":"disables notification when dyno is up (alternatively use HEROKU_NOTIFICATIONS=0)","allowNo":false}},"args":[]},"run:inside":{"id":"run:inside","description":"run a one-off process inside an existing heroku dyno","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run:inside web.1 bash"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"listen":{"name":"listen","type":"boolean","description":"listen on a local port","hidden":true,"allowNo":false}},"args":[]}}} | ||
{"version":"7.42.2","commands":{"console":{"id":"console","pluginName":"@heroku-cli/plugin-run","pluginType":"core","hidden":true,"aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"}},"args":[]},"logs":{"id":"logs","description":"display recent log output\ndisable colors with --no-color, HEROKU_LOGS_COLOR=0, or HEROKU_COLOR=0","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku logs --app=my-app","$ heroku logs --num=50","$ heroku logs --dyno=web --app=my-app","$ heroku logs --app=my-app --tail"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"num":{"name":"num","type":"option","char":"n","description":"number of lines to display"},"ps":{"name":"ps","type":"option","char":"p","description":"hidden alias for dyno","hidden":true},"dyno":{"name":"dyno","type":"option","char":"d","description":"only show output from this dyno type (such as \"web\" or \"worker\")"},"source":{"name":"source","type":"option","char":"s","description":"only show output from this source (such as \"app\" or \"heroku\")"},"tail":{"name":"tail","type":"boolean","char":"t","description":"continually stream logs","allowNo":false},"force-colors":{"name":"force-colors","type":"boolean","description":"force use of colors (even on non-tty output)","allowNo":false}},"args":[]},"rake":{"id":"rake","pluginName":"@heroku-cli/plugin-run","pluginType":"core","hidden":true,"aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"parent app used by review apps","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"no-tty":{"name":"no-tty","type":"boolean","description":"force the command to not run in a tty","allowNo":false}},"args":[]},"run:detached":{"id":"run:detached","description":"run a detached dyno, where output is sent to your logs","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run:detached ls"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"tail":{"name":"tail","type":"boolean","char":"t","description":"continually stream logs","allowNo":false},"type":{"name":"type","type":"option","description":"process type"}},"args":[]},"run":{"id":"run","description":"run a one-off process inside a heroku dyno\nShows a notification if the dyno takes more than 20 seconds to start.","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run bash","$ heroku run -s hobby -- myscript.sh -a arg1 -s arg2"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"parent app used by review apps","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"size":{"name":"size","type":"option","char":"s","description":"dyno size"},"type":{"name":"type","type":"option","description":"process type"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"no-tty":{"name":"no-tty","type":"boolean","description":"force the command to not run in a tty","allowNo":false},"listen":{"name":"listen","type":"boolean","description":"listen on a local port","hidden":true,"allowNo":false},"no-notify":{"name":"no-notify","type":"boolean","description":"disables notification when dyno is up (alternatively use HEROKU_NOTIFICATIONS=0)","allowNo":false}},"args":[]},"run:inside":{"id":"run:inside","description":"run a one-off process inside an existing heroku dyno","pluginName":"@heroku-cli/plugin-run","pluginType":"core","aliases":[],"examples":["$ heroku run:inside web.1 bash"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"exit-code":{"name":"exit-code","type":"boolean","char":"x","description":"passthrough the exit code of the remote command","allowNo":false},"env":{"name":"env","type":"option","char":"e","description":"environment variables to set (use ';' to split multiple vars)"},"listen":{"name":"listen","type":"boolean","description":"listen on a local port","hidden":true,"allowNo":false}},"args":[]}}} |
{ | ||
"name": "@heroku-cli/plugin-run", | ||
"version": "7.41.1", | ||
"version": "7.42.2", | ||
"author": "Chris Freeman @cafreeman", | ||
@@ -79,3 +79,3 @@ "bugs": "https://github.com/heroku/cli/issues", | ||
}, | ||
"gitHead": "4cba369fc1485ce8f0151f24be968674d533861f" | ||
"gitHead": "8e18f333313ba434751a0a41c605c55e60bb5188" | ||
} |
@@ -24,3 +24,3 @@ # @heroku-cli/plugin-run | ||
$ heroku (-v|--version|version) | ||
@heroku-cli/plugin-run/7.41.1 darwin-x64 node-v10.18.1 | ||
@heroku-cli/plugin-run/7.42.2 darwin-x64 node-v10.18.1 | ||
$ heroku --help [COMMAND] | ||
@@ -68,3 +68,3 @@ USAGE | ||
_See code: [src/commands/logs.ts](https://github.com/heroku/cli/blob/v7.41.1/src/commands/logs.ts)_ | ||
_See code: [src/commands/logs.ts](https://github.com/heroku/cli/blob/v7.42.2/src/commands/logs.ts)_ | ||
@@ -97,3 +97,3 @@ ## `heroku run` | ||
_See code: [src/commands/run/index.ts](https://github.com/heroku/cli/blob/v7.41.1/src/commands/run/index.ts)_ | ||
_See code: [src/commands/run/index.ts](https://github.com/heroku/cli/blob/v7.42.2/src/commands/run/index.ts)_ | ||
@@ -120,3 +120,3 @@ ## `heroku run:detached` | ||
_See code: [src/commands/run/detached.ts](https://github.com/heroku/cli/blob/v7.41.1/src/commands/run/detached.ts)_ | ||
_See code: [src/commands/run/detached.ts](https://github.com/heroku/cli/blob/v7.42.2/src/commands/run/detached.ts)_ | ||
@@ -141,3 +141,3 @@ ## `heroku run:inside` | ||
_See code: [src/commands/run/inside.ts](https://github.com/heroku/cli/blob/v7.41.1/src/commands/run/inside.ts)_ | ||
_See code: [src/commands/run/inside.ts](https://github.com/heroku/cli/blob/v7.42.2/src/commands/run/inside.ts)_ | ||
<!-- commandsstop --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61862
1269