@intuned/runtime-dev 1.0.6-cli.8.0.1 → 1.0.6-cli.8.0.2
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.
|
@@ -14,6 +14,7 @@ _dotenv.default.config({
|
|
|
14
14
|
});
|
|
15
15
|
_commander.program.name("intuned-run").description("Run an Intuned API with parameters").argument("<api-name>", "Name of the API to run").option("-p, --parameters-file <file>", "JSON file containing API parameters").option("-o, --output-file <file>", "File to write the API output to").action(async (apiName, options) => {
|
|
16
16
|
const inputData = await (0, _utils.loadParameters)(options.parametersFile);
|
|
17
|
+
console.log(options);
|
|
17
18
|
try {
|
|
18
19
|
const result = await (0, _asyncLocalStorage.runWithContext)({
|
|
19
20
|
runEnvironment: _enums.RunEnvironment.IDE,
|
|
@@ -45,6 +45,7 @@ async function writeResultToFile(outputFileId, result, runId) {
|
|
|
45
45
|
await fs.writeJSON(outputPath, result, {
|
|
46
46
|
spaces: 2
|
|
47
47
|
});
|
|
48
|
+
console.log(_chalk.default.green(`✓ API executed successfully. Result written to ${outputPath}`));
|
|
48
49
|
_Logger.logger.info(`Result written to ${outputPath}`);
|
|
49
50
|
} catch (error) {
|
|
50
51
|
_Logger.logger.error(`Failed to write result to file: ${error.message}`);
|