"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular/cli/commands/doc-impl.ts" between
angular-cli-7.3.0.tar.gz and angular-cli-7.3.1.tar.gz

About: Angular CLI is a command line interface for Angular.

doc-impl.ts  (angular-cli-7.3.0):doc-impl.ts  (angular-cli-7.3.1)
skipping to change at line 17 skipping to change at line 17
*/ */
import { Command } from '../models/command'; import { Command } from '../models/command';
import { Arguments } from '../models/interface'; import { Arguments } from '../models/interface';
import { Schema as DocCommandSchema } from './doc'; import { Schema as DocCommandSchema } from './doc';
const opn = require('opn'); const opn = require('opn');
export class DocCommand extends Command<DocCommandSchema> { export class DocCommand extends Command<DocCommandSchema> {
public async run(options: DocCommandSchema & Arguments) { public async run(options: DocCommandSchema & Arguments) {
if (!options.keyword) {
this.logger.error('You should specify a keyword, for instance, `ng doc Act
ivatedRoute`.');
return 0;
}
let searchUrl = `https://angular.io/api?query=${options.keyword}`; let searchUrl = `https://angular.io/api?query=${options.keyword}`;
if (options.search) { if (options.search) {
searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.k eyword}`; searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.k eyword}`;
} }
return opn(searchUrl, { return opn(searchUrl, {
wait: false, wait: false,
}); });
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)