mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Restore app title.
This commit is contained in:
parent
2819faeb6f
commit
ff23ee508b
@ -15,8 +15,7 @@ Error-handling routines for HackMyResume.
|
|||||||
, FS = require('fs')
|
, FS = require('fs')
|
||||||
, FCMD = require('../hackmyapi')
|
, FCMD = require('../hackmyapi')
|
||||||
, PATH = require('path')
|
, PATH = require('path')
|
||||||
, chalk = require('chalk')
|
, chalk = require('chalk');
|
||||||
, title = chalk.white.bold('\n*** HackMyResume v' + PKG.version + ' ***');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -55,7 +54,7 @@ Error-handling routines for HackMyResume.
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.missingCommand:
|
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(" (");
|
chalk.yellow(" (");
|
||||||
|
|
||||||
msg += Object.keys( FCMD.verbs ).map( function(v, idx, ar) {
|
msg += Object.keys( FCMD.verbs ).map( function(v, idx, ar) {
|
||||||
|
@ -128,6 +128,8 @@ Massage command-line args and setup Commander.js.
|
|||||||
*/
|
*/
|
||||||
function initialize() {
|
function initialize() {
|
||||||
|
|
||||||
|
logMsg( title );
|
||||||
|
|
||||||
// Support case-insensitive sub-commands (build, generate, validate, etc.)..
|
// Support case-insensitive sub-commands (build, generate, validate, etc.)..
|
||||||
var oVerb, verb = '', args = process.argv.slice(), cleanArgs = args.slice(2);
|
var oVerb, verb = '', args = process.argv.slice(), cleanArgs = args.slice(2);
|
||||||
if( cleanArgs.length ) {
|
if( cleanArgs.length ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user