@fulminate/cli
Advanced tools
Comparing version 2.1.11 to 2.1.12
{ | ||
"name": "@fulminate/cli", | ||
"version": "2.1.11", | ||
"version": "2.1.12", | ||
"description": "CLI for bootstrapping and simplifying control over Fulminate Framework projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,5 +8,6 @@ /** | ||
* @param message | ||
* @param spinner Provide existing spinner to restart it with new text. | ||
* @returns {Spinner} | ||
*/ | ||
build(message?: string): any; | ||
build(message?: string, spinner?: any): any; | ||
} |
@@ -20,6 +20,10 @@ "use strict"; | ||
* @param message | ||
* @param spinner Provide existing spinner to restart it with new text. | ||
* @returns {Spinner} | ||
*/ | ||
CliSpinnerFactory.prototype.build = function (message) { | ||
CliSpinnerFactory.prototype.build = function (message, spinner) { | ||
if (message === void 0) { message = ''; } | ||
if (spinner) { | ||
spinner.stop(); | ||
} | ||
return new clui_1.Spinner(message, ['⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷']); | ||
@@ -26,0 +30,0 @@ }; |
@@ -11,3 +11,3 @@ "use strict"; | ||
it('should return correct path', function () { | ||
chai_1.expect(path_util_1.getWorkingDirectory().split('/').reverse()[0]).to.not.equal('cli'); | ||
chai_1.expect(path_util_1.getWorkingDirectory().split('/').reverse()[0]).to.equal('cli'); | ||
}); | ||
@@ -14,0 +14,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
91579
727