Skip to content

Commit 9eb7f1a

Browse files
committed
builtin completion
1 parent 03c9afc commit 9eb7f1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,12 @@ class Shell {
194194

195195
const { command, args } = await this.parseCommand(input);
196196

197-
const result = await command.execute(args);
198-
shouldContinue = result.shouldContinue;
197+
if (command) {
198+
const result = await command.execute(args);
199+
shouldContinue = result.shouldContinue;
200+
} else {
201+
shouldContinue = true;
202+
}
199203
}
200204
}
201205
}

0 commit comments

Comments
 (0)