addtaskをしたとき、workflow選択でescを押したらキャンセル扱い
This commit is contained in:
parent
e8c3eaa0f5
commit
d612c412f9
@ -89,7 +89,11 @@ export async function addTask(cwd: string, args: string[]): Promise<void> {
|
|||||||
value: name,
|
value: name,
|
||||||
}));
|
}));
|
||||||
const selected = await selectOption('Select workflow:', options);
|
const selected = await selectOption('Select workflow:', options);
|
||||||
if (selected && selected !== defaultWorkflow) {
|
if (selected === null) {
|
||||||
|
info('Cancelled.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (selected !== defaultWorkflow) {
|
||||||
workflow = selected;
|
workflow = selected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user