MCPcopy
hub / github.com/Unitech/pm2 / script

Function script

lib/completion.js:128–135  ·  view source on GitHub ↗
(name, completer, cb)

Source from the content-addressed store, hash-verified

126// This is actually a 'template' where the package name is used to setup
127// the completion on the right command, and properly name the bash/zsh functions.
128function script(name, completer, cb) {
129 var p = pth.join(__dirname, 'completion.sh');
130
131 fs.readFile(p, 'utf8', function (er, d) {
132 if (er) return cb(er);
133 cb(null, d);
134 });
135}
136
137function install(name, completer, cb) {
138 var markerIn = '###-begin-' + name + '-completion-###',

Callers 2

completion.jsFile · 0.85
installFunction · 0.85

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…