From a0b557ee25fb43f6907ed35db3106c475afc2983 Mon Sep 17 00:00:00 2001 From: Chapman Pendery <35637443+cpendery@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:52:15 -0500 Subject: [PATCH] fix: complete command hangs too long upon print (#192) Signed-off-by: Chapman Pendery --- src/commands/complete.ts | 1 + 1 file changed, 1 insertion(+) 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");