From b6a0e8730cfff3a6e9e2aa152f01fa412d202558 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Sat, 2 Sep 2017 13:30:24 +0200 Subject: [PATCH] No need to print when initializing config --- src/now.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/now.js b/src/now.js index 5323c8c..df9f1b0 100755 --- a/src/now.js +++ b/src/now.js @@ -12,7 +12,6 @@ const mri = require('mri') // Utilities const error = require('./util/output/error') -const effect = require('./util/output/effect') const param = require('./util/output/param') const getHelp = require('./get-help') const getWelcome = require('./get-welcome') @@ -81,8 +80,6 @@ const main = async (argv_): Promise => { } } - let initConfig = false - let initAuthConfig = false let configExists try { @@ -129,7 +126,6 @@ const main = async (argv_): Promise => { config = getDefaultCfg() try { configFiles.writeToConfigFile(config) - initConfig = true } catch (err) { console.error( error( @@ -219,9 +215,9 @@ const main = async (argv_): Promise => { } } else { authConfig = getDefaultAuthCfg() + try { configFiles.writeToAuthConfigFile(authConfig) - initAuthConfig = true } catch (err) { console.error( error( @@ -234,16 +230,6 @@ const main = async (argv_): Promise => { } } - if (initConfig || initAuthConfig) { - console.log( - effect( - `Initialized default config in "${initConfig && initAuthConfig - ? hp(NOW_DIR) - : hp(initConfig ? NOW_CONFIG_PATH : NOW_AUTH_CONFIG_PATH)}"` - ) - ) - } - // the context object to supply to the providers or the commands const ctx = { config,