We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed2cc4 commit eb295c3Copy full SHA for eb295c3
automation/shellUtils.ts
@@ -78,11 +78,14 @@ export async function $seq(
78
onSuccess();
79
}
80
81
+
82
83
export async function $input(message: string): Promise<string> {
84
console.write(`${message} `);
85
const stdin = Bun.stdin.stream();
86
const reader = stdin.getReader();
87
const chunk = await reader.read();
88
+ reader.releaseLock()
89
const text = Buffer.from(chunk.value ?? '').toString();
90
return text.trim();
91
0 commit comments