fix: complete command hangs too long upon print (#192)

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
Chapman Pendery
2024-03-06 14:52:15 -08:00
committed by GitHub
parent a834bec66b
commit a0b557ee25
+1
View File
@@ -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");