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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/restart.js')
-rw-r--r--lib/restart.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/restart.js b/lib/restart.js
index 426e5789b..eec0cbc3c 100644
--- a/lib/restart.js
+++ b/lib/restart.js
@@ -9,6 +9,11 @@ var lifecycle = require("./utils/lifecycle")
restart.usage = "npm restart <name>[@<version>] [<name>[@<version>] ...]"
+restart.completion = function (args, index, cb) {
+ var installedPkgs = require("./utils/completion/installed-packages")
+ installedPkgs(args, index, true, true, cb)
+}
+
function restart (args, cb) {
restartCmd(args, function (er) {
if (!er) return cb()