1 | "use strict";
|
2 | var path = require('path');
|
3 | var fs = require('fs');
|
4 | var Command = require('../ember-cli/lib/models/command');
|
5 | var CompletionCommand = Command.extend({
|
6 | name: 'completion',
|
7 | description: 'Adds autocomplete functionality to `ng` commands and subcommands',
|
8 | works: 'everywhere',
|
9 | run: function () {
|
10 | var scriptPath = path.resolve(__dirname, '..', 'utilities', 'completion.sh');
|
11 | var scriptOutput = fs.readFileSync(scriptPath, 'utf8');
|
12 | console.log(scriptOutput);
|
13 | }
|
14 | });
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 | exports.default = CompletionCommand;
|
17 |
|
\ | No newline at end of file |