Comparing version 1.0.3 to 1.1.0
@@ -31,3 +31,3 @@ 'use strict'; | ||
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(cwd, argv) { | ||
var cli, filters, _cli$flags, watch, interactive, quiet, debug; | ||
var cli, filters, _cli$flags, watch, interactive, beep, quiet, debug; | ||
@@ -50,2 +50,3 @@ return _regenerator2.default.wrap(function _callee$(_context) { | ||
${_chalk2.default.magenta('--interactive, -i')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsInteractive'))} | ||
${_chalk2.default.magenta('--beep, -b')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsBeep'))} | ||
${_chalk2.default.magenta('--quiet')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsQuiet'))} | ||
@@ -86,2 +87,7 @@ ${_chalk2.default.magenta('--debug')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsDebug'))} | ||
}, | ||
beep: { | ||
type: 'boolean', | ||
alias: 'b', | ||
default: false | ||
}, | ||
quiet: { | ||
@@ -104,3 +110,3 @@ type: 'boolean' | ||
filters = cli.input; | ||
_cli$flags = cli.flags, watch = _cli$flags.watch, interactive = _cli$flags.interactive, quiet = _cli$flags.quiet, debug = _cli$flags.debug; | ||
_cli$flags = cli.flags, watch = _cli$flags.watch, interactive = _cli$flags.interactive, beep = _cli$flags.beep, quiet = _cli$flags.quiet, debug = _cli$flags.debug; | ||
_context.next = 5; | ||
@@ -112,2 +118,3 @@ return (0, _2.default)({ | ||
interactive, | ||
beep, | ||
quiet, | ||
@@ -114,0 +121,0 @@ debug |
@@ -48,2 +48,3 @@ 'use strict'; | ||
_this.interactive = opts.interactive || _this.watch; | ||
_this.beep = !!opts.beep; | ||
_this.logLevel = opts.debug ? _constants.LOG_LEVELS.debug : opts.quiet ? _constants.LOG_LEVELS.error : _constants.LOG_LEVELS.info; | ||
@@ -50,0 +51,0 @@ |
@@ -269,3 +269,5 @@ 'use strict'; | ||
Interface.prototype.beep = function beep() { | ||
(0, _beeper2.default)(); | ||
if (this.env.beep) { | ||
(0, _beeper2.default)(); | ||
} | ||
}; | ||
@@ -272,0 +274,0 @@ |
@@ -25,2 +25,3 @@ 'use strict'; | ||
helpFlagsInteractive: '...', | ||
helpFlagsBeep: 'Emit a beep when Flow errors are detected', | ||
helpFlagsQuiet: 'Silence any stdout output unrelated to Flow status', | ||
@@ -27,0 +28,0 @@ helpFlagsDebug: '...', |
@@ -34,2 +34,3 @@ 'use strict'; | ||
${_chalk2.default.magenta('--interactive, -i')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsInteractive'))} | ||
${_chalk2.default.magenta('--beep, -b')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsBeep'))} | ||
${_chalk2.default.magenta('--quiet')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsQuiet'))} | ||
@@ -70,2 +71,7 @@ ${_chalk2.default.magenta('--debug')} ${_chalk2.default.cyan(_Lang.Lang.get('helpFlagsDebug'))} | ||
}, | ||
beep: { | ||
type: 'boolean', | ||
alias: 'b', | ||
default: false | ||
}, | ||
quiet: { | ||
@@ -89,3 +95,3 @@ type: 'boolean' | ||
let filters = cli.input; | ||
let { watch, interactive, quiet, debug } = cli.flags; | ||
let { watch, interactive, beep, quiet, debug } = cli.flags; | ||
@@ -97,2 +103,3 @@ await (0, _2.default)({ | ||
interactive, | ||
beep, | ||
quiet, | ||
@@ -99,0 +106,0 @@ debug |
@@ -33,2 +33,3 @@ 'use strict'; | ||
this.interactive = opts.interactive || this.watch; | ||
this.beep = !!opts.beep; | ||
this.logLevel = opts.debug ? _constants.LOG_LEVELS.debug : opts.quiet ? _constants.LOG_LEVELS.error : _constants.LOG_LEVELS.info; | ||
@@ -35,0 +36,0 @@ |
@@ -249,5 +249,7 @@ 'use strict'; | ||
beep() { | ||
(0, _beeper2.default)(); | ||
if (this.env.beep) { | ||
(0, _beeper2.default)(); | ||
} | ||
} | ||
} | ||
exports.Interface = Interface; |
@@ -18,2 +18,3 @@ 'use strict'; | ||
helpFlagsInteractive: '...', | ||
helpFlagsBeep: 'Emit a beep when Flow errors are detected', | ||
helpFlagsQuiet: 'Silence any stdout output unrelated to Flow status', | ||
@@ -20,0 +21,0 @@ helpFlagsDebug: '...', |
{ | ||
"name": "glow", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Make your Flow errors GLOW", | ||
@@ -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
90353
2356