From 6c89a3d68e4d64ffd899cc1f99f3cc35543d9958 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sun, 8 Sep 2013 19:25:48 -0500 Subject: [PATCH] Having fun with ASCII Art Yay --- tools/ionic/index.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tools/ionic/index.js b/tools/ionic/index.js index b21ca1994a..ac02c75b25 100644 --- a/tools/ionic/index.js +++ b/tools/ionic/index.js @@ -1,3 +1,13 @@ +/* + __ __ +| / \ |\ | | / ` +| \__/ | \| | \__, + +Licensed under the Apache 2.0 license. See LICENSE For mroe. + +Copyright 2013 Drifty (http://drifty.com/) +*/ + var fs = require('fs'), ncp = require('ncp').ncp, path = require('path'), @@ -17,10 +27,16 @@ Ionic.prototype = { }, _printUsage: function() { - process.stderr.write('Usage: ionic appname'); + this._printIonic(); + process.stderr.write('Usage: ionic appname\n'); process.exit(1); }, + _printIonic: function() { + process.stdout.write('\n __ __ \n'); + process.stdout.write('| / \\ |\\ | | / `\n' + '| \\__/ | \\| | \\__,\n\n'); + }, + _fail: function(msg) { process.stderr.write(msg + '\n'); process.exit(1); @@ -62,6 +78,8 @@ Ionic.prototype = { return this._printUsage(); } + this._printIonic(); + this.appName = argv._[0]; this.targetPath = path.resolve(this.appName);