Skip to content

Commit 2920120

Browse files
committed
Added --repl flag
1 parent 8c4ab9e commit 2920120

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli/bin/heroku-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const completionCommandByName = new Map([
4848
*/
4949
const completionResultsByName = new Map()
5050

51-
export class HerokuRepl {
51+
class HerokuRepl {
5252
/**
5353
* The OClif config object containing
5454
* the command metadata and the means

packages/cli/bin/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const main = async () => {
5252
try {
5353
await config.load()
5454
const {_: [commandName, ...args], ...flags} = yargs
55-
if (!commandName && args.length === 0 && Object.keys(flags).length === 0) {
55+
if (flags.repl && args.length === 0 && Object.keys(flags).length === 1) {
5656
return herokuRepl(config)
5757
}
5858

0 commit comments

Comments
 (0)