"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/schematics_cli/bin/schematics.ts" between
angular-cli-11.0.1.tar.gz and angular-cli-11.0.2.tar.gz

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

schematics.ts  (angular-cli-11.0.1):schematics.ts  (angular-cli-11.0.2)
skipping to change at line 231 skipping to change at line 231
} }
loggingQueue = []; loggingQueue = [];
error = false; error = false;
} }
}); });
/** /**
* Remove every options from argv that we support in schematics itself. * Remove every options from argv that we support in schematics itself.
*/ */
const parsedArgs = Object.assign({}, argv); const parsedArgs = Object.assign({}, argv) as Record<string, unknown>;
delete parsedArgs['--']; delete parsedArgs['--'];
for (const key of booleanArgs) { for (const key of booleanArgs) {
delete parsedArgs[key]; delete parsedArgs[key];
} }
/** /**
* Add options from `--` to args. * Add options from `--` to args.
*/ */
const argv2 = minimist(argv['--']); const argv2 = minimist(argv['--']);
for (const key of Object.keys(argv2)) { for (const key of Object.keys(argv2)) {
skipping to change at line 257 skipping to change at line 257
// Pass the rest of the arguments as the smart default "argv". Then delete it. // Pass the rest of the arguments as the smart default "argv". Then delete it.
workflow.registry.addSmartDefaultProvider('argv', (schema) => { workflow.registry.addSmartDefaultProvider('argv', (schema) => {
if ('index' in schema) { if ('index' in schema) {
return argv._[Number(schema['index'])]; return argv._[Number(schema['index'])];
} else { } else {
return argv._; return argv._;
} }
}); });
parsedArgs._ = []; delete parsedArgs._;
// Add prompts. // Add prompts.
if (argv['interactive'] && isTTY()) { if (argv['interactive'] && isTTY()) {
workflow.registry.usePromptProvider(_createPromptProvider()); workflow.registry.usePromptProvider(_createPromptProvider());
} }
/** /**
* Execute the workflow, which will report the dry run events, run the tasks, and complete * Execute the workflow, which will report the dry run events, run the tasks, and complete
* after all is done. * after all is done.
* *
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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