Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
completion for docs command
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 21, 2011
1 parent 78ad772 commit 78e3a26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ module.exports = docs

docs.usage = "npm docs <pkgname>"

docs.completion = function (args, index, cb) {
var remotePkgs = require("./utils/completion/remote-packages")
remotePkgs(args, index, false, false, false, cb)
docs.completion = function (opts, cb) {
if (opts.conf.argv.remain.length > 2) return cb()
registry.get("/-/short", null, 60000, function (er, list) {
return cb(null, list || [])
})
}

var exec = require("./utils/exec")
Expand Down

0 comments on commit 78e3a26

Please sign in to comment.