hunk.code_window: 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',
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: export interface DocOptions {
     search?: boolean;
   }
  
hunk.file_path: packages/@angular/cli/commands/doc.ts
hunk.type: add
file: 'use strict';
  
  var commandProperties = [
    'name',
    'description',
    'aliases',
    'works',
    'availableOptions',
    'anonymousOptions'
  ];
  var blueprintProperties = [
    'name',
    'aliases',
    'description',
    'availableOptions',
    'anonymousOptions',
    'overridden'
  ];
  
  function forEachWithProperty(properties, forEach, context) {
    return properties.filter(function(key) {
      return this[key] !== undefined;
    }, context).forEach(forEach, context);
  }
  
  module.exports = {
    command: {
      forEachWithProperty: function(forEach, context) {
        return forEachWithProperty(commandProperties, forEach, context);
      }
    },
    blueprint: {
      forEachWithProperty: function(forEach, context) {
        return forEachWithProperty(blueprintProperties, forEach, context);
      }
    }
  };
  