Permalink
Browse files

call it "star", not "use"

  • Loading branch information...
1 parent 0e60a49 commit fc110c91562ac9febd5b898aba01077bc34af7f3 @thejh committed Sep 16, 2011
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/{use.js → star.js}
  2. +1 −1 npm.js
View
@@ -1,5 +1,5 @@
-module.exports = use
+module.exports = star
var npm = require("../npm")
, registry = require("./utils/npm-registry-client")
@@ -12,14 +12,14 @@ var npm = require("../npm")
, lifecycle = require("./utils/lifecycle")
, chain = require("slide").chain
-use.usage = "npm use <package> <yes/no>"
+star.usage = "npm star <package> <yes/no>"
-use.completion = function (opts, cb) {
+star.completion = function (opts, cb) {
// for now, not yet implemented.
return cb()
}
-function use (args, cb) {
+function star (args, cb) {
if (args.length !== 2) return cb(new Error("you must specify exactly two parameters: package and yes or no"))
var using
if (args[1] === "yes")
@@ -28,7 +28,7 @@ function use (args, cb) {
using = false
else
return cb(new Error("you must specify exactly one parameter: yes or no"))
- log.verbose(args, "use")
+ log.verbose(args, "star")
registry.use(args[0], using, function (er) {
cb(er)
})
View
2 npm.js
@@ -88,7 +88,7 @@ var commandCache = {}
, "link"
, "publish"
- , "use"
+ , "star"
, "tag"
, "adduser"
, "unpublish"

0 comments on commit fc110c9

Please sign in to comment.