From ff23ee508b7981d68c76699df03e7de1c968c7a0 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Tue, 5 Jan 2016 09:38:21 -0500 Subject: [PATCH] Restore app title. --- src/core/error-handler.js | 5 ++--- src/index.js | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/error-handler.js b/src/core/error-handler.js index 99bd3b4..78a848d 100644 --- a/src/core/error-handler.js +++ b/src/core/error-handler.js @@ -15,8 +15,7 @@ Error-handling routines for HackMyResume. , FS = require('fs') , FCMD = require('../hackmyapi') , PATH = require('path') - , chalk = require('chalk') - , title = chalk.white.bold('\n*** HackMyResume v' + PKG.version + ' ***'); + , chalk = require('chalk'); @@ -55,7 +54,7 @@ Error-handling routines for HackMyResume. break; case HACKMYSTATUS.missingCommand: - msg = title + chalk.yellow("\nPlease ") + chalk.yellow.bold("give me a command") + + msg = chalk.yellow("Please ") + chalk.yellow.bold("give me a command") + chalk.yellow(" ("); msg += Object.keys( FCMD.verbs ).map( function(v, idx, ar) { diff --git a/src/index.js b/src/index.js index 766f7e5..28e68a1 100644 --- a/src/index.js +++ b/src/index.js @@ -128,6 +128,8 @@ Massage command-line args and setup Commander.js. */ function initialize() { + logMsg( title ); + // Support case-insensitive sub-commands (build, generate, validate, etc.).. var oVerb, verb = '', args = process.argv.slice(), cleanArgs = args.slice(2); if( cleanArgs.length ) {