@tolinax/ayoune-cli 2024.2.9 → 2024.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import inquirer from "inquirer";
|
|
2
|
+
import os from "os";
|
|
3
|
+
import path from "path";
|
|
2
4
|
export async function promptFilePath() {
|
|
3
|
-
const {
|
|
5
|
+
const { filePath } = await inquirer.prompt([
|
|
4
6
|
{
|
|
5
7
|
type: "fuzzypath",
|
|
6
|
-
name: "
|
|
8
|
+
name: "filePath",
|
|
7
9
|
message: "Select a target directory:",
|
|
10
|
+
itemType: "directory",
|
|
11
|
+
rootPath: path.join(os.homedir(), "aYOUne"),
|
|
12
|
+
suggestOnly: true,
|
|
13
|
+
depthLimit: 8,
|
|
8
14
|
},
|
|
9
15
|
]);
|
|
10
|
-
return
|
|
16
|
+
return filePath;
|
|
11
17
|
}
|