blob: 0a3bb8be9db87a98b66c0ea118836f401a4dd9ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// npm tag <project> <version> <tag>
// turns out tagging isn't very complicated
// all the smarts are in the couch.
module.exports = function (args, cb) {
var thing = args.shift().split("@")
, project = thing.shift()
, version = thing.join("@")
, tag = args.shift()
if (!project || !version || !tag) return cb(new Error(
"Usage: npm tag <project>@<version> <tag>"))
require("./utils/registry").tag(project, version, tag, cb)
}
|