Add prompting for destination.
This commit is contained in:
parent
40e132c0df
commit
af84b95b26
|
@ -27,7 +27,18 @@ async function actionHandler(
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue