diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-01-22 14:53:33 -0500 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-01-22 14:53:33 -0500 |
| commit | 45580056485328338899dd65607c6c57d3797f35 (patch) | |
| tree | 4cb6a10485b440e0b23eb638764fc2ff14faa974 /examples/modular_commands_main.py | |
| parent | 49fac04513727a67b0360a9e7560087c64dd557d (diff) | |
| parent | a3b1b6ddf81cdc0b253f15feeb167ff348afd14f (diff) | |
| download | cmd2-git-45580056485328338899dd65607c6c57d3797f35.tar.gz | |
Merge branch 'master' into 2.0
Diffstat (limited to 'examples/modular_commands_main.py')
| -rw-r--r-- | examples/modular_commands_main.py | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/examples/modular_commands_main.py b/examples/modular_commands_main.py index 1b0ec64d..2559544a 100644 --- a/examples/modular_commands_main.py +++ b/examples/modular_commands_main.py @@ -5,13 +5,27 @@ A complex example demonstrating a variety of methods to load CommandSets using a with examples of how to integrate tab completion with argparse-based commands. """ import argparse -from typing import Iterable, List, Optional +from typing import ( + Iterable, + List, + Optional, +) -from modular_commands.commandset_basic import BasicCompletionCommandSet # noqa: F401 -from modular_commands.commandset_complex import CommandSetA # noqa: F401 -from modular_commands.commandset_custominit import CustomInitCommandSet # noqa: F401 - -from cmd2 import Cmd, Cmd2ArgumentParser, CommandSet, with_argparser +from cmd2 import ( + Cmd, + Cmd2ArgumentParser, + CommandSet, + with_argparser, +) +from modular_commands.commandset_basic import ( # noqa: F401 + BasicCompletionCommandSet, +) +from modular_commands.commandset_complex import ( # noqa: F401 + CommandSetA, +) +from modular_commands.commandset_custominit import ( + CustomInitCommandSet, # noqa: F401 +) class WithCommandSets(Cmd): |
