1
Fork 0

Add prompting for destination.

This commit is contained in:
Bauke 2023-03-06 19:08:28 +01:00
parent 40e132c0df
commit af84b95b26
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 12 additions and 1 deletions

View File

@ -27,7 +27,18 @@ async function actionHandler(
continue; continue;
} }
console.log(file); const filename = file.name;
const { destination } = await prompt.prompt([{
type: prompt.Input,
name: "destination",
message: `${filename} Destination:`,
}]);
if (destination === undefined || destination === "") {
continue;
}
console.log(filename, destination);
} }
} }
} }