Skip to content

Commit 9a25598

Browse files
tkowjmcdo29
andcommitted
Update apps/docs/src/pages/en/features/commander.md
Co-authored-by: Jay McDoniel <jmcdo29@gmail.com>
1 parent 66e7d2d commit 9a25598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/src/pages/en/features/commander.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Though you'll find the implementation details in the [factory page](./factory),
243243
export class AppModule {}
244244
```
245245

246-
If you have many sub commands and nested directories for that, you may feel tough to import all of them though we can use nestjs module system resolution rules. For the case, static `regsiterWithSubCommands` method available in which the class inheriting `CommandRunner` returns list of itself and all sub commands in the scope it can traverse `subcommands` property of `@Command` and `@SubCommand` recursively from root command class which calls `regsiterWithSubCommands`. This means you can write the setting like followed by example instead of the previous example.
246+
If you have many sub commands and nested directories for that, it may feel tough to import all of them. For this case, the static `regsiterWithSubCommands` method is available in all classes inheriting `CommandRunner` which returns a list of itself and all sub commands. This means you can write the setting like followed by example instead of the previous example.
247247

248248
```typescript title="src/app.module.ts"
249249
@Module({

0 commit comments

Comments
 (0)