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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/completion.js')
-rw-r--r--deps/npm/lib/completion.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/completion.js b/deps/npm/lib/completion.js
index 6f6cfd810b2..3157255bfb6 100644
--- a/deps/npm/lib/completion.js
+++ b/deps/npm/lib/completion.js
@@ -14,6 +14,7 @@ var shorthandNames = Object.keys(shorthands)
var allConfs = configNames.concat(shorthandNames)
var once = require('once')
var isWindowsShell = require('./utils/is-windows-shell.js')
+var output = require('./utils/output.js')
completion.completion = function (opts, cb) {
if (opts.w > 3) return cb()
@@ -203,7 +204,7 @@ function wrapCb (cb, opts) {
console.error([er && er.stack, compls, opts.partialWord])
if (er || compls.length === 0) return cb(er)
- console.log(compls.join('\n'))
+ output(compls.join('\n'))
cb()
}
}