effects-as-data-generate
Advanced tools
Comparing version 2.2.2 to 2.2.3
22
index.js
@@ -6,10 +6,16 @@ const program = require('commander'); | ||
program.version('0.0.1').command('init').action(function() { | ||
fxns.init().then(printResult).catch(printFailure); | ||
}); | ||
program | ||
.version('0.0.1') | ||
.command('init', 'initialize an effects-as-data project') | ||
.action(function() { | ||
fxns.init().then(printResult).catch(printFailure); | ||
}); | ||
program.version('0.0.1').command('fn').action(function(fn) { | ||
const fnName = typeof fn === 'string' ? fn : null; | ||
fxns.newFn(fnName).then(printResult).catch(printFailure); | ||
}); | ||
program | ||
.version('0.0.1') | ||
.command('fn', 'create new effects-as-data function') | ||
.action(function(fn) { | ||
const fnName = typeof fn === 'string' ? fn : null; | ||
fxns.newFn(fnName).then(printResult).catch(printFailure); | ||
}); | ||
@@ -34,1 +40,3 @@ function printResult(result) { | ||
program.parse(process.argv); | ||
if (!process.argv.length) program.outputHelpInformation(); |
{ | ||
"name": "effects-as-data-generate", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
11307
276