diff options
author | isaacs <i@izs.me> | 2010-07-26 10:13:58 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-03 04:31:26 +0400 |
commit | 429add467c4f4574b2ebd5372c84f61075ae2ac2 (patch) | |
tree | eb92afb24eb998986fd639f032f127f5caa96463 /cli.js | |
parent | b854e97a959899b76b8ae078add84514180a5cd5 (diff) |
savestate. wip. totally choppy useless crap.
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -6,16 +6,13 @@ var log = require("./lib/utils/log") log("ok", "it worked if it ends with") -var fs = require("fs") - , path = require("path") - , sys = require("sys") - , npm = require("./npm") - // supported commands. + + +var sys = require("sys") + , npm = require("./npm") , argv = process.argv.slice(2) , arg = "" - - , conf = {} , key , arglist = [] , command @@ -67,7 +64,7 @@ if (!command) { ) process.exit(1) } else itWorked = true -} else npm.commands[command](arglist, errorHandler) +} else npm.execute(command, arglist, errorHandler) function errorHandler (er) { if (!er) { |