Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
node_modules
/
ibrik
/
node_modules
/
which
/
bin
/
which
1
#!/usr/bin/env node
2
var which = require("../")
3
if (process.argv.length < 3) {
4
console.error("Usage: which <thing>")
5
process.exit(1)
6
}
7
8
which(process.argv[2], function (er, thing) {
9
if (er) {
10
console.error(er.message)
11
process.exit(er.errno || 127)
12
}
13
console.log(thing)
14
})