machinepack
Advanced tools
Comparing version 2.2.7 to 2.2.9
@@ -17,3 +17,5 @@ #!/usr/bin/env node | ||
Machinepacks.promptAboutNewMachine().exec({ | ||
Machinepacks.promptAboutNewMachine({ | ||
identity: program.args[0] | ||
}).exec({ | ||
error: function (err) { | ||
@@ -24,19 +26,40 @@ console.error('Unexpected error occurred:\n', err); | ||
Machinepacks.addMachine({ | ||
var newMachineMetadata = { | ||
machinepackRootPath: process.cwd(), | ||
identity: answers.identity, | ||
friendlyName: answers.friendlyName, | ||
description: answers.description, | ||
extendedDescription: answers.extendedDescription, | ||
description: (function (){ | ||
if (!answers.description) return undefined; | ||
return answers.description; | ||
})(), | ||
extendedDescription: (function (){ | ||
if (!answers.extendedDescription) return undefined; | ||
return answers.extendedDescription; | ||
})(), | ||
inputs: {}, | ||
defaultExit: 'success', | ||
exits: { | ||
error: { | ||
description: 'Unexpected error occurred.' | ||
}, | ||
success: { | ||
variableName: 'result', | ||
description: 'Done.' | ||
} | ||
}, | ||
}).exec({ | ||
}; | ||
if (typeof answers.defaultExit !== 'undefined') { | ||
newMachineMetadata.defaultExit = answers.defaultExit; | ||
} | ||
if (typeof answers.idempotent !== 'undefined') { | ||
newMachineMetadata.idempotent = answers.idempotent; | ||
} | ||
if (typeof answers.sync !== 'undefined') { | ||
newMachineMetadata.sync = answers.sync; | ||
} | ||
if (typeof answers.cacheable !== 'undefined') { | ||
newMachineMetadata.cacheable = answers.cacheable; | ||
} | ||
if (typeof answers.moreInfoUrl !== 'undefined') { | ||
newMachineMetadata.moreInfoUrl = answers.moreInfoUrl; | ||
} | ||
Machinepacks.addMachine(newMachineMetadata).exec({ | ||
error: function (err) { | ||
@@ -43,0 +66,0 @@ console.error('Error generating new machine:\n', err); |
{ | ||
"name": "machinepack", | ||
"version": "2.2.7", | ||
"version": "2.2.9", | ||
"description": "CLI tool for working with machinepacks and their machines.", | ||
@@ -48,3 +48,3 @@ "bin": { | ||
"machinepack-fs": "^1.6.0", | ||
"machine": "^3.0.0", | ||
"machine": "^4.0.0", | ||
"chalk": "^0.5.1", | ||
@@ -51,0 +51,0 @@ "machinepack-machines": "^3.0.9", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42774
1013
Updatedmachine@^4.0.0