summaryrefslogtreecommitdiff
path: root/examples/modular_commands_main.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-01-05 11:29:39 -0500
committerEric Lin <anselor@gmail.com>2021-01-21 10:24:08 -0500
commitf1f76a4ba207d802f78277d0ba3defa44cf7b973 (patch)
tree0a59103b35e9160aed2466fdafa0f8020c426bcc /examples/modular_commands_main.py
parente0dee46ca871e56523059b1566577ff781f6fb63 (diff)
downloadcmd2-git-import_wrapping.tar.gz
Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.import_wrapping
Diffstat (limited to 'examples/modular_commands_main.py')
-rw-r--r--examples/modular_commands_main.py34
1 files changed, 27 insertions, 7 deletions
diff --git a/examples/modular_commands_main.py b/examples/modular_commands_main.py
index b698e00f..2c652f22 100644
--- a/examples/modular_commands_main.py
+++ b/examples/modular_commands_main.py
@@ -5,13 +5,33 @@ 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 Dict, Iterable, List, Optional
-
-from cmd2 import Cmd, Cmd2ArgumentParser, CommandSet, CompletionItem, with_argparser
-from cmd2.utils import CompletionError, basic_complete
-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 typing import (
+ Dict,
+ Iterable,
+ List,
+ Optional,
+)
+
+from cmd2 import (
+ Cmd,
+ Cmd2ArgumentParser,
+ CommandSet,
+ CompletionItem,
+ with_argparser,
+)
+from cmd2.utils import (
+ CompletionError,
+ basic_complete,
+)
+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
+)
# Data source for argparse.choices
food_item_strs = ['Pizza', 'Ham', 'Ham Sandwich', 'Potato']