1 | ;
|
2 | var fs = require("fs"),
|
3 | path = require("path");
|
4 | module.exports = function(o) {
|
5 | if ("string" != typeof o) throw new Error("Missing completion type");
|
6 | var e = path.join(__dirname, "../completion", o);
|
7 | try {
|
8 | console.log(fs.readFileSync(e, "utf8")), process.exit(0)
|
9 | } catch (t) {
|
10 | console.log('echo "pomy autocompletion rules for', "'" + o + "'", 'not found"'), process.exit(5)
|
11 | }
|
12 | }; |
\ | No newline at end of file |