Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Silent shifting

--quiet should work on all calls to log.info ("Looking for nearest .shifter.json, woohoo, etc")
--silent should also call 'quiet'
  • Loading branch information...
commit c2f14b8826b2ea79b8647ce68b7c91ae747384bd 1 parent 0e3a4e5
@earnubs earnubs authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 lib/index.js
View
17 lib/index.js
@@ -82,7 +82,16 @@ exports.init = function (opts, initCallback) {
require('./help');
return;
}
+
+ if (options.quiet) {
+ log.quiet();
+ }
+ if (options.silent) {
+ log.quiet();
+ log.silent();
+ }
+
if (options['global-config']) {
log.info('racing to find the closest .shifter.json file');
find(CWD, '.shifter.json', function(err, file) {
@@ -112,14 +121,6 @@ exports.init = function (opts, initCallback) {
return;
}
- if (options.quiet) {
- log.quiet();
- }
-
- if (options.silent) {
- log.silent();
- }
-
log.info('revving up');
if (!options.walk) {
log.info('looking for ' + buildFileName + ' file');
Please sign in to comment.
Something went wrong with that request. Please try again.