UNPKG

746 BJavaScriptView Raw
1"use strict";
2var Command = require('../ember-cli/lib/models/command');
3var doc_1 = require('../tasks/doc');
4var 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});
20Object.defineProperty(exports, "__esModule", { value: true });
21exports.default = DocCommand;
22//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@angular/cli/commands/doc.js.map
\No newline at end of file