fix: address Cubic P2 issues in CLI modules

This commit is contained in:
YeonGyu-Kim
2026-02-08 21:57:34 +09:00
parent ce37924fd8
commit babcb0050a
4 changed files with 39 additions and 8 deletions
+2
View File
@@ -12,6 +12,8 @@ async function selectOrCancel<TValue extends Readonly<string | boolean | number>
options: Option<TValue>[]
initialValue: TValue
}): Promise<TValue | null> {
if (!process.stdin.isTTY) return null
const value = await p.select<TValue>({
message: params.message,
options: params.options,