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/star.js')
-rw-r--r--lib/star.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/star.js b/lib/star.js
index 29c4037d0..ce141688b 100644
--- a/lib/star.js
+++ b/lib/star.js
@@ -4,9 +4,13 @@ var npm = require('./npm.js')
var log = require('npmlog')
var asyncMap = require('slide').asyncMap
var mapToRegistry = require('./utils/map-to-registry.js')
+var usage = require('./utils/usage')
-star.usage = 'npm star [<pkg>...]\n' +
- 'npm unstar [<pkg>...]'
+star.usage = usage(
+ 'star',
+ 'npm star [<pkg>...]\n' +
+ 'npm unstar [<pkg>...]'
+)
star.completion = function (opts, cb) {
// FIXME: there used to be registry completion here, but it stopped making