UNPKG

719 BJavaScriptView Raw
1"use strict";
2var path = require('path');
3var fs = require('fs');
4var Command = require('../ember-cli/lib/models/command');
5var 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});
15Object.defineProperty(exports, "__esModule", { value: true });
16exports.default = CompletionCommand;
17//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@angular/cli/commands/completion.js.map
\No newline at end of file