Hans 601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00

19 lines
530 B
TypeScript

import * as path from 'path';
import * as fs from 'fs';
const Command = require('../ember-cli/lib/models/command');
const CompletionCommand = Command.extend({
name: 'completion',
description: 'Adds autocomplete functionality to `ng` commands and subcommands',
works: 'everywhere',
run: function() {
const scriptPath = path.resolve(__dirname, '..', 'utilities', 'completion.sh');
const scriptOutput = fs.readFileSync(scriptPath, 'utf8');
console.log(scriptOutput);
}
});
export default CompletionCommand;