Skip to content

Commit 3b5dbad

Browse files
committed
feat(@angular/cli): sort schematics by name in --help-json
1 parent ec41e6c commit 3b5dbad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export class GenerateCommand extends SchematicCommand<GenerateCommandSchema> {
2424
this.description.suboptions = {};
2525

2626
const schematicNames = schematicName ? [schematicName] : collection.listSchematicNames();
27+
// Sort as a courtesy for the user.
28+
schematicNames.sort();
2729

2830
for (const name of schematicNames) {
2931
const schematic = this.getSchematic(collection, name, true);

0 commit comments

Comments
 (0)