Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli.js b/cli.js
index 303b5b2e3..9b59d446d 100755
--- a/cli.js
+++ b/cli.js
@@ -4,7 +4,7 @@
// might conceivably be a bootstrap attempt.
var log = require("./lib/utils/log")
-log("ok", "it worked if it ends with")
+log.info("ok", "it worked if it ends with")
var fs = require("./lib/utils/graceful-fs")
, path = require("path")
@@ -23,7 +23,7 @@ var fs = require("./lib/utils/graceful-fs")
, command
, flagsDone
-log(argv, "cli")
+log.verbose(argv, "cli")
while (arg = argv.shift()) {
if (!key && (arg === "-h" || arg === "-?")) arg = "--help"
@@ -54,7 +54,7 @@ if (printVersion) {
} else log(npm.version, "version")
process.on("uncaughtException", errorHandler)
-process.on("exit", function () { if (!itWorked) log("not ok") })
+process.on("exit", function () { if (!itWorked) log.win("not ok") })
var itWorked = false
@@ -85,7 +85,7 @@ if (!command && !conf.help) {
function errorHandler (er) {
if (!er) {
itWorked = true
- log("ok")
+ log.win("ok")
return rm(npm.tmp, function (er) { process.exit(0) })
}
log.error(er)