mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
fix: complete command hangs too long upon print (#192)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user