heroku 10.0.3-alpha.0 → 10.0.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/heroku-repl.js +4 -0
- package/bin/run +2 -2
- package/oclif.manifest.json +675 -675
- package/package.json +2 -2
package/bin/heroku-repl.js
CHANGED
|
@@ -16,6 +16,10 @@ module.exports.herokuRepl = async function (config) {
|
|
|
16
16
|
|
|
17
17
|
for await (const input of commandGenerator()) {
|
|
18
18
|
const [command, ...argv] = input
|
|
19
|
+
if (command === '.exit') {
|
|
20
|
+
process.exit(0)
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
if (command.startsWith('set')) {
|
|
20
24
|
flagsByName.set(argv[0], argv[1])
|
|
21
25
|
process.stderr.write(`setting --app to "${argv[1]}"\n$ `)
|
package/bin/run
CHANGED
|
@@ -52,14 +52,14 @@ const main = async () => {
|
|
|
52
52
|
try {
|
|
53
53
|
await config.load()
|
|
54
54
|
const {_: [commandName, ...args], ...flags} = yargs
|
|
55
|
-
if (!args.length && !Object.keys(flags).length) {
|
|
55
|
+
if (!commandName && !args.length && !Object.keys(flags).length) {
|
|
56
56
|
return await herokuRepl(config)
|
|
57
57
|
}
|
|
58
58
|
if (flags.prompt) {
|
|
59
59
|
delete flags.prompt
|
|
60
60
|
await promptUser(config, commandName, args, flags)
|
|
61
61
|
}
|
|
62
|
-
await oclif.run(
|
|
62
|
+
await oclif.run(undefined, config)
|
|
63
63
|
await oclifFlush()
|
|
64
64
|
} catch (error) {
|
|
65
65
|
// capture any errors raised by oclif
|