mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Having fun with ASCII Art
Yay
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user