1 | "use strict";
|
2 | var Command = require('../ember-cli/lib/models/command');
|
3 | var doc_1 = require('../tasks/doc');
|
4 | var DocCommand = Command.extend({
|
5 | name: 'doc',
|
6 | description: 'Opens the official Angular documentation for a given keyword.',
|
7 | works: 'everywhere',
|
8 | anonymousOptions: [
|
9 | '<keyword>'
|
10 | ],
|
11 | run: function (commandOptions, rawArgs) {
|
12 | var keyword = rawArgs[0];
|
13 | var docTask = new doc_1.DocTask({
|
14 | ui: this.ui,
|
15 | project: this.project
|
16 | });
|
17 | return docTask.run(keyword);
|
18 | }
|
19 | });
|
20 | Object.defineProperty(exports, "__esModule", { value: true });
|
21 | exports.default = DocCommand;
|
22 |
|
\ | No newline at end of file |