Skip to content

Commit 5a8bdeb

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular/cli): hide private schematics from ng g help output
With this change we don't display private schematic in `ng generate` help output.
1 parent 8e66c91 commit 5a8bdeb

File tree

1 file changed

+4
-0
lines changed
  • packages/angular/cli/src/commands/generate

1 file changed

+4
-0
lines changed

packages/angular/cli/src/commands/generate/cli.ts

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ export class GenerateCommandModule
6767
}
6868

6969
for (const schematicName of schematicNames) {
70+
if (schematicsInCollection[schematicName].private) {
71+
continue;
72+
}
73+
7074
const {
7175
description: {
7276
schemaJson,

0 commit comments

Comments
 (0)