Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move prototype, fix js style, add MyUtil.spawn
- Loading branch information
Showing
29 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
var args = process.argv.slice(2) | ||
, commandName = args.shift() | ||
, commands = require('../lib/command') | ||
; | ||
var args = process.argv.slice(2); | ||
var commandName = args.shift(); | ||
var commands = require('../lib/command'); | ||
|
||
switch (commandName) { | ||
case '-v': | ||
case '--version': | ||
case 'ver': | ||
case 'version': | ||
var version = require('../package.json').version; | ||
console.log(version); | ||
break; | ||
default: | ||
var command = commands[commandName] || commands.help; | ||
command(args); | ||
break; | ||
case '-v': | ||
case '--version': | ||
case 'ver': | ||
case 'version': | ||
var version = require('../package.json').version; | ||
console.log(version); | ||
break; | ||
default: | ||
var command = commands[commandName] || commands.help; | ||
command(args); | ||
break; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MyUtil = require('./MyUtil') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.