Skip to content

Commit 02f83cb

Browse files
committed
builtin completion
1 parent dc1ab6a commit 02f83cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ class Shell {
193193
}
194194

195195
const { command, args } = await this.parseCommand(input);
196+
197+
if (!command) {
198+
// The error message is already written in parseCommand
199+
continue; // Skip to the next iteration
200+
}
196201

197202
const result = await command.execute(args);
198203
shouldContinue = result.shouldContinue;

0 commit comments

Comments
 (0)