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/tag.js')
-rw-r--r--lib/tag.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tag.js b/lib/tag.js
index e50b97092..850760693 100644
--- a/lib/tag.js
+++ b/lib/tag.js
@@ -5,6 +5,11 @@
module.exports = tag
tag.usage = "npm tag <project>@<version> <tag>"
+tag.completion = function (args, index, cb) {
+ var installedPkgs = require("./utils/completion/installed-packages")
+ installedPkgs(args, index, true, false, cb)
+}
+
function tag (args, cb) {
var thing = (args.shift() || "").split("@")
, project = thing.shift()