Skip to content

Commit 2bf1228

Browse files
committed
fix(@angular/cli): fix rebase on master of original commit
Keeping this as a separate commit to leave Mike as the author of the original work.
1 parent 2aa2b1f commit 2bf1228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/cli/commands/generate-impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ export class GenerateCommand extends SchematicCommand {
8484
this.printHelpOptions(this.options);
8585
} else {
8686
this.printHelpUsage('generate', this.options);
87-
const engineHost = getEngineHost();
87+
const engineHost = this.getEngineHost();
8888
const [collectionName] = this.parseSchematicInfo(options);
8989
const collection = this.getCollection(collectionName);
90-
const schematicNames: string[] = engineHost.listSchematics(collection);
90+
const schematicNames: string[] = engineHost.listSchematicNames(collection.description);
9191
this.logger.info('Available schematics:');
9292
schematicNames.forEach(schematicName => {
9393
this.logger.info(` ${schematicName}`);

0 commit comments

Comments
 (0)