Skip to content

Commit bda751a

Browse files
tleonhardtanselor
authored andcommitted
Fix a couple doc8 warnings
1 parent 201e27b commit bda751a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/features/modular_commands.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ add additional capabilities.
1313
Features
1414
~~~~~~~~
1515

16-
* Modular Command Sets - Commands can be broken into separate modules rather than in one god class holding all commands.
16+
* Modular Command Sets - Commands can be broken into separate modules rather than in one god class holding all
17+
commands.
1718
* Automatic Command Discovery - In your application, merely defining and importing a CommandSet is sufficient for
1819
cmd2 to discover and load your command. No manual registration is necessary.
1920
* Dynamically Loadable/Unloadable Commands - Command functions and CommandSets can both be loaded and unloaded
@@ -211,10 +212,11 @@ Description
211212
~~~~~~~~~~~
212213
Using the `with_argparse` decorator, it is possible to define subcommands for your command. This has a tendency to
213214
either drive your interface into an object-centric interface. For example, imagine you have a tool that manages your
214-
media collection and you want to manage movies or shows. An object-centric approach would push you to have base commands
215-
such as `movies` and `shows` which each have subcommands `add`, `edit`, `list`, `delete`. If you wanted to present an
216-
action-centric command set, so that `add`, `edit`, `list`, and `delete` are the base commands, you'd have to organize
217-
your code around these similar actions rather than organizing your code around similar objects being managed.
215+
media collection and you want to manage movies or shows. An object-centric approach would push you to have base
216+
commands such as `movies` and `shows` which each have subcommands `add`, `edit`, `list`, `delete`. If you wanted to
217+
present an action-centric command set, so that `add`, `edit`, `list`, and `delete` are the base commands, you'd have
218+
to organize your code around these similar actions rather than organizing your code around similar objects being
219+
managed.
218220

219221
Subcommand injection allows you to inject subcommands into a base command to present an interface that is sensible to
220222
a user while still organizing your code in whatever structure make more logical sense to the developer.

0 commit comments

Comments
 (0)