diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:11:38 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:11:38 -0400 |
| commit | 48420deeceaeb5793d4e2616eec7ca2f67c545e0 (patch) | |
| tree | 825d550028788c8fd95c6785fdb5ece7174dc5d2 /cmd2/__init__.py | |
| parent | 245dc33730d2a27bc9744be7cf36f176f5a0c10a (diff) | |
| download | cmd2-git-48420deeceaeb5793d4e2616eec7ca2f67c545e0.tar.gz | |
Moving a bit of code around to shrink cmd2.py
This includes moving cmd2 decorators into a new file called decorators.py
Moved some constants from cmd2.py to constants.py
Diffstat (limited to 'cmd2/__init__.py')
| -rw-r--r-- | cmd2/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd2/__init__.py b/cmd2/__init__.py index c496a4f7..8e8a8845 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -12,7 +12,8 @@ except DistributionNotFound: from .ansi import style from .argparse_custom import Cmd2ArgumentParser, CompletionError, CompletionItem -from .cmd2 import Cmd, Statement, EmptyStatement, categorize -from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category -from .constants import DEFAULT_SHORTCUTS +from .cmd2 import Cmd, EmptyStatement +from .constants import COMMAND_NAME, DEFAULT_SHORTCUTS +from .decorators import categorize, with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category +from .parsing import Statement from .py_bridge import CommandResult |
