| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |\ \ \ \ \ \ \ \ \ \ |
|
| | | |_|_|_|_|_|_|_|/
| | |/| | | | | | | | |
|
| |/ / / / / / / / /
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
finis should be finish.
A missing double quote (") for the docstring in the `do_bail` example makes formatting incorrect.
|
|/ / / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
I guess the examples structure has changed since the docs.
I suggest changing the broken link: https://github.com/python-cmd2/cmd2/tree/master/plugins/command_sets/examples
to
https://github.com/python-cmd2/cmd2/tree/master/examples/modular_commands
Maybe also hiding the full link is nice.
|
| |_|_|_|_|_|_|/
|/| | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
(Cmd) set --long
Usage: set [-h] [-v] [param] [value]
Error: unrecognized arguments: --long
|
| | | | | | | | |
|
| |_|_|_|_|_|/
|/| | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
were not being
restored when read from a startup script.
|
| |_|_|_|_|/
|/| | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |_|_|_|/
|/| | | | |
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
display help when called with -h/--help.
'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator.
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
are now
Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it
easy to filter out which attributes in an argparse.Namespace were added by cmd2.
|
| | | |
|
| |/
|/|
| |
| |
| |
| | |
attribute cmd2 was adding
Added get_statement() function to argparse.Namespace which returns __statement__ attribute
|
|/
|
|
| |
Added unit test to verify command name validation updates.
|
|
|
|
|
|
| |
CommandSet command functions (do_, complete_, help_).
Renamed install_command_set and uninstall_command_set to
register_command_set and unregister_command_set.
|
|
|
|
|
|
|
|
|
|
| |
passing it a CommandSet instance.
Search for a CommandSet instance that matches the completer's parent
class type.`
Resolves Issue #967
Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
|
|
|
|
| |
implementation as an option to with_argparser instead.
|
|
|
|
| |
passing to command handlers to access sub-command handlers
|
| |
|
|
|
|
|
| |
sub-commande => subcommand
Added help/aliases to `as_subcommand_to` decorator.
|
|
|
|
|
|
| |
load/unload.
Updated examples and documentation to include discussion of injectable
sub-commands.
|
|
|
|
| |
Added additional documentation
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Importing pkg_resources has a side-effect of scanning every installed
distribution on sys.path to load the metadata, especially the entry
points defined in the packages. This can have a significant
launch-time cost for command line applications when there are a lot of
distributions to scan.
Since cmd2 is only using pkg_resources to find the version of the
installed package, pkg_resources can be replaced with
importlib.metadata. The implementation in the new library is
significantly faster because it goes immediately to the metadata file
for the requested distribution, instead of scanning all of them. There
are also no import-time side-effects.
importlib.metadata is a new standard library module starting with
python 3.8. For earlier versions, a compatible library has been
released to PyPI as 'importlib_metadata'. This change adds the new
dependency with a qualifier so that it is only applied to older
versions of python, and then updates the places that were importing
pkg_resources to look for the different versions of the new library
instead. The documentation configuration is changed to import cmd2
itself to get its version, since the package has to be installed for
the metadata to be available anyway.
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
| |
|
|
|
|
| |
section
|
| |
|
| |
|
|
|
|
| |
Both exception classes have been added to the public API.
|
|
|
|
|
|
|
| |
Also:
- Added isort to Pipenv dev
- Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke
- Ran isort to sort includes
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also:
- Deal with warnings when building docs with Sphinx 3.0.0
|
|
|
|
| |
and consolidates that
|
|
|
|
| |
command
|
| |
|