hunk.code_window: const opn = require('opn');
   export const DocTask: any = Task.extend({
     run: function(keyword: string) {
       const searchUrl = `https://angular.io/docs/ts/latest/api/#!?query=${keyword}`;
       return opn(searchUrl, { wait: false });
     }
   });
hunk.labels: keep keep keep replace replace keep keep keep
hunk.after_edit:   run: function(keyword: string, search: boolean) {
       const searchUrl = search ? `https://angular.io/search/#stq=${keyword}&stp=1` :
        `https://angular.io/docs/ts/latest/api/#!?query=${keyword}`;
  
hunk.file_path: packages/@angular/cli/tasks/doc.ts
hunk.type: replace
file: 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;
  