Skip to content

Commit 8103bc2

Browse files
author
jbavari
committed
Pulling out the CLI tasks into their own module. Adding CLI as its own module instead of the old ionic.js file, now its cli.js which can be used as a module, where you just call its run method with args already parsed out for ease of testing
1 parent 7fe5302 commit 8103bc2

6 files changed

Lines changed: 934 additions & 10 deletions

File tree

bin/ionic

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
#!/usr/bin/env node
22

33

4+
// 'use strict';
5+
6+
// process.title = 'ionic';
7+
8+
// var Ionic = require('../lib/ionic').Ionic;
9+
10+
// Ionic.run();
11+
12+
/////////////////////
13+
//What I want to see
14+
/////////////////////
415
'use strict';
516

617
process.title = 'ionic';
718

8-
var Ionic = require('../lib/ionic').Ionic;
19+
var argv = require('optimist').argv,
20+
IonicCli = require('../lib/cli');
921

10-
Ionic.run();
22+
IonicCli.run(argv);

0 commit comments

Comments
 (0)