diff --git a/src/commands/complete.ts b/src/commands/complete.ts index d014371..124b5fa 100644 --- a/src/commands/complete.ts +++ b/src/commands/complete.ts @@ -9,6 +9,7 @@ import { Shell } from "../utils/shell.js"; const action = async (input: string) => { const suggestions = await getSuggestions(input, process.cwd(), os.platform() === "win32" ? Shell.Cmd : Shell.Bash); process.stdout.write(JSON.stringify(suggestions)); + process.exit(0); }; const cmd = new Command("complete");