mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
feat(@angular/cli): generate --helpJson will remove collection name
For the default collection.
This commit is contained in:
parent
3b5dbad5c8
commit
06d332ba23
@ -37,8 +37,12 @@ export class GenerateCommand extends SchematicCommand<GenerateCommandSchema> {
|
||||
);
|
||||
}
|
||||
|
||||
if (this.getDefaultSchematicCollection() == collectionName) {
|
||||
this.description.suboptions[name] = options;
|
||||
} else {
|
||||
this.description.suboptions[`${collectionName}:${name}`] = options;
|
||||
}
|
||||
}
|
||||
|
||||
this.description.options.forEach(option => {
|
||||
if (option.name == 'schematic') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user