@intuned/runtime-dev 1.0.6-cli.8.2.6 → 1.0.6-cli.8.2.8
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.
|
@@ -22,4 +22,4 @@ export declare const tsConfigCli: {
|
|
|
22
22
|
include: string[];
|
|
23
23
|
exclude: string[];
|
|
24
24
|
};
|
|
25
|
-
export declare const cliReadme = "# Intuned CLI Project\n\n## Usage Instructions\n\nThis CLI project is built with Intuned and provides the following commands:\n### Init a project\n
|
|
25
|
+
export declare const cliReadme = "# Intuned CLI Project\n\n## Usage Instructions\n\nThis CLI project is built with Intuned and provides the following commands:\n### Init a project\n`npx -p @intuned/runtime intuned-init`\n\n### Keys,Environment Variables and Settings\n- INTUNED_WORKSPACE_ID: Your Intuned workspace ID, either provided via command line or intuned.json\n- INTUNED_API_KEY: Your Intuned API key, either provided via command line or environment variable\n- INTUNED_PROJECT_NAME: The name of your Intuned project, either provided via command line or intuned.json\n\n### Running the project\n`npm run intuned-run`\n\n\n### Building the project\n`npm run intuned-build`\n\n### Deploying the project\n`npm run intuned-deploy`\n\n### Artifacts provided\n- `./intuned.json`: Intuned project configuration file\n- `./api`: Folder containing the API files\n- `./parameters`: Folder containing the parameters files\n- `./output`: Folder containing the output files\n\n### Run Parameters\n--parameters-file/ -i: Path to the parameters file\n\n### Storage\nResults from your runs and appended payloads will be stored in the `./output/[runId]` directory \nstructure when providing the --store-results option on the intuned run command.\n";
|
|
@@ -34,8 +34,7 @@ const cliReadme = exports.cliReadme = `# Intuned CLI Project
|
|
|
34
34
|
|
|
35
35
|
This CLI project is built with Intuned and provides the following commands:
|
|
36
36
|
### Init a project
|
|
37
|
-
|
|
38
|
-
npx -p @intuned/runtime intuned-init
|
|
37
|
+
\`npx -p @intuned/runtime intuned-init\`
|
|
39
38
|
|
|
40
39
|
### Keys,Environment Variables and Settings
|
|
41
40
|
- INTUNED_WORKSPACE_ID: Your Intuned workspace ID, either provided via command line or intuned.json
|
|
@@ -43,19 +42,14 @@ npx -p @intuned/runtime intuned-init
|
|
|
43
42
|
- INTUNED_PROJECT_NAME: The name of your Intuned project, either provided via command line or intuned.json
|
|
44
43
|
|
|
45
44
|
### Running the project
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
\`\`\`
|
|
45
|
+
\`npm run intuned-run\`
|
|
46
|
+
|
|
49
47
|
|
|
50
48
|
### Building the project
|
|
51
|
-
|
|
52
|
-
npm run intuned-build
|
|
53
|
-
\`\`\`
|
|
49
|
+
\`npm run intuned-build\`
|
|
54
50
|
|
|
55
51
|
### Deploying the project
|
|
56
|
-
|
|
57
|
-
npm run intuned-deploy
|
|
58
|
-
\`\`\`
|
|
52
|
+
\`npm run intuned-deploy\`
|
|
59
53
|
|
|
60
54
|
### Artifacts provided
|
|
61
55
|
- \`./intuned.json\`: Intuned project configuration file
|
package/dist/common/cli/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
13
13
|
async function getAuthCredentials(options) {
|
|
14
14
|
const workspaceId = options.workspaceId || (await getSettingIntunedJSON("workspaceId"));
|
|
15
15
|
const apiKey = options.apiKey || process.env.INTUNED_API_KEY;
|
|
16
|
-
if (!workspaceId || !
|
|
16
|
+
if (!workspaceId || !apiKey) {
|
|
17
17
|
throw new Error("Authentication details are required. Please provide them via command line options(api key, workspace id), intuned.json(workspace id) or environment variables(api key).");
|
|
18
18
|
}
|
|
19
19
|
return {
|