Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "cli-task", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"repository": "https://github.com/astoilkov/cli-task", | ||
@@ -5,0 +5,0 @@ "description": "Task runner for developers minimalists", |
@@ -7,3 +7,5 @@ #!/usr/bin/env node | ||
const minimist = require("minimist"); | ||
let argv = minimist(process.argv.slice(2)); | ||
let argv = minimist(process.argv.slice(2), { | ||
boolean: ['print', 'colors', 'animate'] | ||
}); | ||
let taskName = argv._[0]; | ||
@@ -10,0 +12,0 @@ let taskPath = path_1.join(process.cwd(), 'tasks', taskName + '.js'); |
@@ -47,3 +47,3 @@ "use strict"; | ||
}; | ||
if (this.options.animate) { | ||
if (this.options.print) { | ||
this.update(); | ||
@@ -113,3 +113,3 @@ cliCursor.hide(); | ||
case Step_1.StepStatus.Running: | ||
text += process.platform == 'win32' | ||
text += process.platform == 'win32' || !this.options.animate | ||
? this.chalk.yellow(figures.play) | ||
@@ -116,0 +116,0 @@ : this.chalk.yellow(spinnerFrames[this.spinnerFrameIndex]); |
20437
550