Skip to content

fix(@angular/cli): ng generate --help shows the wrong collection #14530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2019
Merged

fix(@angular/cli): ng generate --help shows the wrong collection #14530

merged 1 commit into from
May 28, 2019

Conversation

alan-agius4
Copy link
Collaborator

At the moment, collectionName and schematicCollections are not set in various schematics command which result in fallbacking to the hardcoded default collectionName https://github.com/angular/angular-cli/blob/master/packages/angular/cli/models/schematic-command.ts#L79

Hence, this will result in incorrect information being present when using the --help, --list.

Fixes #14519

@alan-agius4 alan-agius4 changed the title fix(@angular/cli): ng g --list shows the wrong collection fix(@angular/cli): ng generate --list and --help shows the wrong collection May 28, 2019
@alan-agius4 alan-agius4 changed the title fix(@angular/cli): ng generate --list and --help shows the wrong collection fix(@angular/cli): ng generate --help shows the wrong collection May 28, 2019
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label May 28, 2019
@alan-agius4 alan-agius4 requested a review from clydin May 28, 2019 11:02
At the moment, collectionName and schematicCollections are not set in various schematics command which result in fallbacking to the hardcoded default collectionName https://github.com/angular/angular-cli/blob/master/packages/angular/cli/models/schematic-command.ts#L79

Hence, this will result in incorrect information being present when using the `--help`, `--list`.

Fixes #14519
@mgechev mgechev merged commit db34464 into angular:master May 28, 2019
@alan-agius4 alan-agius4 deleted the schematics-command-cli branch May 28, 2019 19:13
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng g --list shows the wrong collection
4 participants