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

26 lines
555 B
TypeScript

const Command = require('../ember-cli/lib/models/command');
import { DocTask } from '../tasks/doc';
const DocCommand = Command.extend({
name: 'doc',
description: 'Opens the official Angular documentation for a given keyword.',
works: 'everywhere',
anonymousOptions: [
'<keyword>'
],
run: function(commandOptions: any, rawArgs: Array<string>) {
const keyword = rawArgs[0];
const docTask = new DocTask({
ui: this.ui,
project: this.project
});
return docTask.run(keyword);
}
});
export default DocCommand;