Comparing version 0.3.2 to 0.4.0
{ | ||
"name": "cli-task", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"repository": "https://github.com/astoilkov/cli-task", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -5,6 +5,6 @@ "use strict"; | ||
(function (StepStatus) { | ||
StepStatus[StepStatus["Initial"] = 0] = "Initial"; | ||
StepStatus[StepStatus["Running"] = 1] = "Running"; | ||
StepStatus[StepStatus["Success"] = 2] = "Success"; | ||
StepStatus[StepStatus["Failure"] = 3] = "Failure"; | ||
StepStatus["Initial"] = "initial"; | ||
StepStatus["Running"] = "running"; | ||
StepStatus["Success"] = "success"; | ||
StepStatus["Failure"] = "failure"; | ||
})(StepStatus = exports.StepStatus || (exports.StepStatus = {})); | ||
@@ -11,0 +11,0 @@ class Step { |
@@ -108,15 +108,11 @@ "use strict"; | ||
return { | ||
global: { | ||
argv: argv, | ||
get: (key) => this.stateValues[key], | ||
set: (key, value) => this.stateValues[key] = value, | ||
argv: argv, | ||
options: options, | ||
get: (key) => this.stateValues[key], | ||
set: (key, value) => this.stateValues[key] = value, | ||
info: (message) => { | ||
this.getCurrentTask().info = message; | ||
}, | ||
current: { | ||
options: options, | ||
info: (message) => { | ||
this.getCurrentTask().info = message; | ||
}, | ||
fail: (message) => { | ||
this.getCurrentTask().failure(message); | ||
} | ||
fail: (message) => { | ||
this.getCurrentTask().failure(message); | ||
} | ||
@@ -123,0 +119,0 @@ }; |
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
21302
618