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 | |
| parent | 49fac04513727a67b0360a9e7560087c64dd557d (diff) | |
| parent | a3b1b6ddf81cdc0b253f15feeb167ff348afd14f (diff) | |
| download | cmd2-git-45580056485328338899dd65607c6c57d3797f35.tar.gz | |
Merge branch 'master' into 2.0
Diffstat (limited to 'examples/modular_commands')
| -rw-r--r-- | examples/modular_commands/commandset_basic.py | 15 | ||||
| -rw-r--r-- | examples/modular_commands/commandset_complex.py | 4 | ||||
| -rw-r--r-- | examples/modular_commands/commandset_custominit.py | 7 |
3 files changed, 21 insertions, 5 deletions
diff --git a/examples/modular_commands/commandset_basic.py b/examples/modular_commands/commandset_basic.py index 9c94e01e..17b86186 100644 --- a/examples/modular_commands/commandset_basic.py +++ b/examples/modular_commands/commandset_basic.py @@ -2,9 +2,18 @@ """ A simple example demonstrating a loadable command set """ -from typing import List - -from cmd2 import Cmd, CommandSet, CompletionError, Statement, with_category, with_default_category +from typing import ( + List, +) + +from cmd2 import ( + Cmd, + CommandSet, + CompletionError, + Statement, + with_category, + with_default_category, +) @with_default_category('Basic Completion') diff --git a/examples/modular_commands/commandset_complex.py b/examples/modular_commands/commandset_complex.py index 94f8b5f4..f8d9dca9 100644 --- a/examples/modular_commands/commandset_complex.py +++ b/examples/modular_commands/commandset_complex.py @@ -5,7 +5,9 @@ Test CommandSet """ import argparse -from typing import List +from typing import ( + List, +) import cmd2 diff --git a/examples/modular_commands/commandset_custominit.py b/examples/modular_commands/commandset_custominit.py index 2ef94a75..e24ac291 100644 --- a/examples/modular_commands/commandset_custominit.py +++ b/examples/modular_commands/commandset_custominit.py @@ -2,7 +2,12 @@ """ A simple example demonstrating a loadable command set """ -from cmd2 import Cmd, CommandSet, Statement, with_default_category +from cmd2 import ( + Cmd, + CommandSet, + Statement, + with_default_category, +) @with_default_category('Custom Init') |
