Skip to content

Commit 48420de

Browse files
committed
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
1 parent 245dc33 commit 48420de

File tree

6 files changed

+261
-253
lines changed

6 files changed

+261
-253
lines changed

cmd2/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
from .ansi import style
1414
from .argparse_custom import Cmd2ArgumentParser, CompletionError, CompletionItem
15-
from .cmd2 import Cmd, Statement, EmptyStatement, categorize
16-
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
17-
from .constants import DEFAULT_SHORTCUTS
15+
from .cmd2 import Cmd, EmptyStatement
16+
from .constants import COMMAND_NAME, DEFAULT_SHORTCUTS
17+
from .decorators import categorize, with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
18+
from .parsing import Statement
1819
from .py_bridge import CommandResult

0 commit comments

Comments
 (0)