addtaskをしたとき、workflow選択でescを押したらキャンセル扱い

This commit is contained in:
nrslib 2026-01-28 15:49:16 +09:00
parent e8c3eaa0f5
commit d612c412f9

View File

@ -89,7 +89,11 @@ export async function addTask(cwd: string, args: string[]): Promise<void> {
value: name,
}));
const selected = await selectOption('Select workflow:', options);
if (selected && selected !== defaultWorkflow) {
if (selected === null) {
info('Cancelled.');
return;
}
if (selected !== defaultWorkflow) {
workflow = selected;
}
}