Having fun with ASCII Art

Yay
This commit is contained in:
Max Lynch
2013-09-08 19:25:48 -05:00
parent f9ea86ce63
commit 6c89a3d68e

View File

@ -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);