diff --git a/README.md b/README.md index e242cbe..0e3cddb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # forge-cli-utils -[![build status](https://travis-ci.org/petrbroz/forge-cli-utils.svg?branch=master)](https://travis-ci.org/petrbroz/forge-cli-utils) +[![build status](https://travis-ci.com/petrbroz/forge-cli-utils.svg?branch=master)](https://travis-ci.com/petrbroz/forge-cli-utils) [![npm version](https://badge.fury.io/js/forge-cli-utils.svg)](https://badge.fury.io/js/forge-cli-utils) ![node](https://img.shields.io/node/v/forge-cli-utils.svg) ![npm downloads](https://img.shields.io/npm/dw/forge-cli-utils.svg) diff --git a/package-lock.json b/package-lock.json index 62502ff..c212cd8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "1.2.1", + "version": "1.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -752,9 +752,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" }, "log-symbols": { "version": "3.0.0", diff --git a/package.json b/package.json index bc82072..d9f9661 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "1.3.0", + "version": "1.3.1", "description": "Command line tools for Autodesk Forge services.", "author": "Petr Broz ", "license": "MIT", diff --git a/src/forge-da.js b/src/forge-da.js index fdbcc9e..edb3e54 100755 --- a/src/forge-da.js +++ b/src/forge-da.js @@ -503,7 +503,7 @@ async function activityExists(activityId) { function _inventorActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs) { const config = { - commandLine: [`$(engine.path)\\InventorCoreConsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -515,7 +515,7 @@ function _inventorActivityConfig(activityId, description, ownerId, bundleName, b if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -537,7 +537,7 @@ function _inventorActivityConfig(activityId, description, ownerId, bundleName, b function _revitActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs) { const config = { - commandLine: [`$(engine.path)\\revitcoreconsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\revitcoreconsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -549,7 +549,7 @@ function _revitActivityConfig(activityId, description, ownerId, bundleName, bund if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -571,7 +571,7 @@ function _revitActivityConfig(activityId, description, ownerId, bundleName, bund function _autocadActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs, script) { const config = { - commandLine: [`$(engine.path)\\accoreconsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\accoreconsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -583,7 +583,7 @@ function _autocadActivityConfig(activityId, description, ownerId, bundleName, bu if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -604,7 +604,7 @@ function _autocadActivityConfig(activityId, description, ownerId, bundleName, bu config.settings = { script: script }; - config.commandLine[0] += ' /s $(settings[script].path)'; + config.commandLine[0] += ' /s \"$(settings[script].path)\"'; } return config; }