Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated documentationmisc | Kevin Van Brunt | 2021-01-29 | 1 | -0/+9 |
| | |||||
* | Merge branch 'master' into pr/docs/md/brokenlink | Todd Leonhardt | 2021-01-28 | 2 | -5/+8 |
|\ | |||||
| * | Merge branch 'master' into pr/doc/commands | Todd Leonhardt | 2021-01-28 | 1 | -3/+6 |
| |\ | |||||
| | * | Update conditional pyreadline3 dependency for Win | Kyle King | 2021-01-27 | 1 | -3/+6 |
| | | | |||||
| * | | Fix doc in docs/features/commands.rst | Kevin "Tristate Tom" Weiss | 2021-01-28 | 1 | -2/+2 |
| |/ | | | | | | | finis should be finish. A missing double quote (") for the docstring in the `do_bail` example makes formatting incorrect. | ||||
* | | docs/features/modular_commands: fix broken link | Kevin "Tristate Tom" Weiss | 2021-01-28 | 1 | -1/+1 |
|/ | | | | | | | | | 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. | ||||
* | Fix wrong superclass in doc | Kilian | 2021-01-02 | 1 | -1/+1 |
| | |||||
* | Replace with_argparser_and_unknown_args in docs | Kyle King | 2020-11-08 | 1 | -11/+8 |
| | |||||
* | Use set --verbose instead of -v in docs | Kyle King | 2020-10-31 | 1 | -2/+2 |
| | |||||
* | Fixed error in set --long, which should be set -v | Kyle King | 2020-10-31 | 1 | -2/+2 |
| | | | | | (Cmd) set --long Usage: set [-h] [-v] [param] [value] Error: unrecognized arguments: --long | ||||
* | typo | Stratos Gerakakis | 2020-10-10 | 1 | -1/+1 |
| | |||||
* | Fixed issue where quoted redirectors and terminators in aliases and macros ↵ | Kevin Van Brunt | 2020-09-30 | 1 | -0/+4 |
| | | | | | | were not being restored when read from a startup script. | ||||
* | Updated documentation about set command | Kevin Van Brunt | 2020-09-09 | 1 | -9/+10 |
| | |||||
* | Fixed type hints in example code1.3.9 | Kevin Van Brunt | 2020-09-03 | 1 | -1/+1 |
| | |||||
* | Documented CommandSet event handlers | Kevin Van Brunt | 2020-09-03 | 1 | -1/+29 |
| | |||||
* | Updated docs | Kevin Van Brunt | 2020-09-01 | 1 | -4/+4 |
| | |||||
* | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵ | Kevin Van Brunt | 2020-08-27 | 1 | -2/+2 |
| | | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator. | ||||
* | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 3 | -11/+13 |
| | | | | | | | 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. | ||||
* | Updated change log and docs for release1.3.5 | Kevin Van Brunt | 2020-08-25 | 1 | -0/+15 |
| | |||||
* | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵ | Kevin Van Brunt | 2020-08-25 | 1 | -1/+2 |
| | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | Updated documentation with more explicit discussions on testing | Eric Lin | 2020-08-20 | 7 | -8/+80 |
| | | | | Added unit test to verify command name validation updates. | ||||
* | Breaking change: Removed cmd2 app as a required second parameter to | Eric Lin | 2020-08-12 | 1 | -34/+35 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 2 | -1/+5 |
| | | | | | | | | | | 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 | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 1 | -3/+3 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Fix a couple doc8 warnings | Todd Leonhardt | 2020-08-04 | 1 | -5/+7 |
| | |||||
* | Suggested PR Fixes. | Eric Lin | 2020-08-04 | 1 | -5/+5 |
| | | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator. | ||||
* | Adds support for injectable subcommands as part of CommandSet | Eric Lin | 2020-08-04 | 1 | -0/+126 |
| | | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands. | ||||
* | updated imports | Eric Lin | 2020-08-04 | 3 | -0/+214 |
| | | | | Added additional documentation | ||||
* | Fixes to sphinx generation | Eric Lin | 2020-08-04 | 2 | -0/+6 |
| | |||||
* | Fixed hook documentation | Kevin Van Brunt | 2020-07-17 | 1 | -9/+9 |
| | |||||
* | Address fact that typing.Deque wasn't defined prior to 3.5.4 | Todd Leonhardt | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | replace pkg_resources with importlib.metadata | Doug Hellmann | 2020-07-12 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | Fixed command finalization example | Kevin Van Brunt | 2020-07-07 | 1 | -1/+1 |
| | |||||
* | Move line that seemed out of place at the very end to before the "advanced" ↵ | Todd Leonhardt | 2020-06-27 | 1 | -3/+3 |
| | | | | section | ||||
* | Further additions to pyscript documenntation for Issue #644 | Eric Lin | 2020-06-22 | 4 | -0/+114 |
| | |||||
* | Updated docs | Kevin Van Brunt | 2020-05-28 | 2 | -1/+20 |
| | |||||
* | Added SkipPostcommandHooks exception and made Cmd2ArgparseError inherit from it. | Kevin Van Brunt | 2020-05-07 | 2 | -13/+26 |
| | | | | Both exception classes have been added to the public API. | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -2/+1 |
| | | | | | | | 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 | ||||
* | Completion doc updates | Kevin Van Brunt | 2020-04-23 | 1 | -1/+2 |
| | |||||
* | More completion doc updates | Kevin Van Brunt | 2020-04-23 | 1 | -2/+2 |
| | |||||
* | Updated tab completion documentation | Kevin Van Brunt | 2020-04-23 | 1 | -3/+40 |
| | |||||
* | Documented CompletionError class | Kevin Van Brunt | 2020-04-23 | 1 | -0/+18 |
| | |||||
* | Fix doc8 whitespace issue | Todd Leonhardt | 2020-04-23 | 1 | -1/+1 |
| | |||||
* | Updating documentation for table creation | Kevin Van Brunt | 2020-04-22 | 3 | -0/+42 |
| | |||||
* | Updated docs | Kevin Van Brunt | 2020-04-22 | 3 | -0/+37 |
| | |||||
* | Fix documentation typo found in PR #915 | Todd Leonhardt | 2020-04-09 | 1 | -1/+1 |
| | |||||
* | Fix extra space typo | Todd Leonhardt | 2020-04-09 | 1 | -1/+1 |
| | |||||
* | Added documentation about decorator order and updated an example | Todd Leonhardt | 2020-04-09 | 2 | -0/+48 |
| | | | | | Also: - Deal with warnings when building docs with Sphinx 3.0.0 | ||||
* | The continuation_prompt attribute was declared twice in cmd.rst - this fixes ↵ | Todd Leonhardt | 2020-04-08 | 1 | -5/+1 |
| | | | | and consolidates that |