@tolinax/ayoune-cli 2024.2.16 → 2024.2.18
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.
- package/data/modelsAndRights.js +3189 -0
- package/data/modules.js +26 -0
- package/index.js +11 -11
- package/lib/api/apiCallHandler.js +42 -42
- package/lib/api/apiClient.js +16 -16
- package/lib/api/login.js +1 -1
- package/lib/commands/createAuditCommand.js +30 -30
- package/lib/commands/createCopyCommand.js +24 -24
- package/lib/commands/createCreateCommand.js +31 -31
- package/lib/commands/createDescribeCommand.js +27 -27
- package/lib/commands/createEditCommand.js +28 -28
- package/lib/commands/createGetCommand.js +36 -36
- package/lib/commands/createListCommand.js +35 -35
- package/lib/commands/createModulesCommand.js +41 -41
- package/lib/commands/createStorageCommand.js +16 -16
- package/lib/helpers/handleResponseFormatOptions.js +43 -43
- package/lib/helpers/makeRandomToken.js +27 -0
- package/lib/models/getCollections.js +1 -1
- package/lib/models/getModelsInModules.js +1 -1
- package/lib/models/getModuleFromCollection.js +1 -1
- package/lib/operations/handleCollectionOperation.js +68 -68
- package/lib/operations/handleCreateSingleOperation.js +27 -27
- package/lib/operations/handleEditRawOperation.js +35 -35
- package/lib/operations/handleGetOperation.js +25 -25
- package/lib/prompts/promptAudits.js +15 -15
- package/lib/prompts/promptFileName.js +12 -12
- package/lib/prompts/promptFilePath.js +18 -18
- package/lib/prompts/promptModule.js +1 -1
- package/package.json +1 -2
- package/lib/prompts/prompFilePath.js +0 -11
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import inquirer from "inquirer";
|
|
2
|
-
import os from "os";
|
|
3
|
-
import path from "path";
|
|
4
|
-
export async function promptFilePath(fp) {
|
|
5
|
-
const { filePath } = await inquirer.prompt([
|
|
6
|
-
{
|
|
7
|
-
type: "fuzzypath",
|
|
8
|
-
name: "filePath",
|
|
9
|
-
message: "Select a target directory:",
|
|
10
|
-
itemType: "directory",
|
|
11
|
-
default: fp,
|
|
12
|
-
rootPath: path.join(os.homedir(), "aYOUne"),
|
|
13
|
-
suggestOnly: false,
|
|
14
|
-
depthLimit: 8,
|
|
15
|
-
},
|
|
16
|
-
]);
|
|
17
|
-
return filePath;
|
|
18
|
-
}
|
|
1
|
+
import inquirer from "inquirer";
|
|
2
|
+
import os from "os";
|
|
3
|
+
import path from "path";
|
|
4
|
+
export async function promptFilePath(fp) {
|
|
5
|
+
const { filePath } = await inquirer.prompt([
|
|
6
|
+
{
|
|
7
|
+
type: "fuzzypath",
|
|
8
|
+
name: "filePath",
|
|
9
|
+
message: "Select a target directory:",
|
|
10
|
+
itemType: "directory",
|
|
11
|
+
default: fp,
|
|
12
|
+
rootPath: path.join(os.homedir(), "aYOUne"),
|
|
13
|
+
suggestOnly: false,
|
|
14
|
+
depthLimit: 8,
|
|
15
|
+
},
|
|
16
|
+
]);
|
|
17
|
+
return filePath;
|
|
18
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Prompt functions
|
|
2
2
|
import inquirer from "inquirer";
|
|
3
|
-
import { aYOUneModules } from "
|
|
3
|
+
import { aYOUneModules } from "../../data/modules.js";
|
|
4
4
|
export async function promptModule() {
|
|
5
5
|
const { module } = await inquirer.prompt([
|
|
6
6
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolinax/ayoune-cli",
|
|
3
|
-
"version": "2024.2.
|
|
3
|
+
"version": "2024.2.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@tolinax/ayoune-models": "^2024.2.29",
|
|
106
105
|
"axios": "^1.6.7",
|
|
107
106
|
"axios-retry": "^4.0.0",
|
|
108
107
|
"chalk": "^5.3.0",
|