created install command and moved cli to local-cli directory

This commit is contained in:
Thomas Mchugh
2015-04-03 20:00:23 -05:00
parent 3f0e3b7d5e
commit 6bc78b1d66
5 changed files with 186 additions and 38 deletions

View File

@@ -33,7 +33,8 @@ if (cli) {
process.exit(1);
}
if (args[0] === 'init') {
switch (args[0]) {
case 'init':
if (args[1]) {
init(args[1]);
} else {
@@ -42,13 +43,15 @@ if (cli) {
);
process.exit(1);
}
} else {
break;
default:
console.error(
'Command `%s` unrecognized. ' +
'Did you mean to run this inside a react-native project?',
args[0]
);
process.exit(1);
break;
}
}