Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add ability to remove commands and commandsets | Eric Lin | 2020-08-04 | 4 | -8/+148 |
| | | | | Issue #943 | ||||
* | Added new constructor parameter to flag whether commands should autoload. ↵ | Eric Lin | 2020-08-04 | 2 | -31/+169 |
| | | | | | | Added unit tests. Moved installing commands into separate functions that can be called Issue #943 | ||||
* | Some minor cleanup of how imports work. Fixed issue with help documentation ↵ | Eric Lin | 2020-08-04 | 6 | -14/+34 |
| | | | | | | for CommandSet commands. Issue #943 | ||||
* | Initial implementation of modular command loading | Eric Lin | 2020-08-04 | 6 | -2/+451 |
| | | | | | | | | | | Issue #943 New class CommandSet can be used to tag a class as a command class. If the constructor is simple, the object will automatically be instantiated and loaded. New register_command decorator to tag any arbitrary function as a command. | ||||
* | Added 'no cover' for code block which cannot be tested in our unit tests | Kevin Van Brunt | 2020-08-03 | 1 | -1/+1 |
| | |||||
* | Added type annotations for fields in cmd2.Cmd. | Eric Lin | 2020-07-21 | 9 | -45/+66 |
| | | | | | | | Cleaned up docstring in external test plugin Updated some initialization to match new approach for version info discovery. Tagged some IDE-only lines as no-cover Adds plugin coverage reporting. | ||||
* | Merge pull request #959 from python-cmd2/doc_fix | Kevin Van Brunt | 2020-07-17 | 2 | -13/+13 |
|\ | | | | | Fixed hook documentation | ||||
| * | Fixed hook documentation | Kevin Van Brunt | 2020-07-17 | 2 | -13/+13 |
|/ | |||||
* | Updated release date for 1.2.1 in CHANGELOG1.2.1 | Todd Leonhardt | 2020-07-14 | 1 | -2/+2 |
| | |||||
* | Brought in cmd2 plugin template as a first-class member of cmd2 proper | Eric Lin | 2020-07-14 | 17 | -16/+900 |
| | |||||
* | Merge pull request #956 from python-cmd2/importlib-metadata | Todd Leonhardt | 2020-07-13 | 2 | -1/+5 |
|\ | | | | | Fix a dependency version requirement which was too restrictive | ||||
| * | Fix a dependency version requirement which was too restrictive and required ↵ | Todd Leonhardt | 2020-07-13 | 2 | -1/+5 |
|/ | | | | bleeding edge for no good reason | ||||
* | Updated CHANGELOG | Todd Leonhardt | 2020-07-13 | 1 | -0/+2 |
| | |||||
* | Merge pull request #955 from python-cmd2/typing_deque1.2.0 | Todd Leonhardt | 2020-07-13 | 2 | -1/+11 |
|\ | | | | | Fix compatibility with Python 3.5 versions prior to 3.5.4 | ||||
| * | Added PyCharm warning suppressions | Todd Leonhardt | 2020-07-13 | 1 | -0/+2 |
| | | |||||
| * | small simplification | Todd Leonhardt | 2020-07-13 | 1 | -2/+1 |
| | | |||||
| * | slight cleanup | Todd Leonhardt | 2020-07-13 | 1 | -2/+2 |
| | | |||||
| * | Address fact that typing.Deque wasn't defined prior to 3.5.4 | Todd Leonhardt | 2020-07-13 | 2 | -1/+10 |
|/ | |||||
* | Update release date in CHANGELOG | Todd Leonhardt | 2020-07-13 | 1 | -1/+1 |
| | |||||
* | Updated CHANGELOG | Todd Leonhardt | 2020-07-12 | 1 | -0/+6 |
| | |||||
* | Merge pull request #953 from dhellmann/drop-pkg-resources | Todd Leonhardt | 2020-07-12 | 4 | -12/+22 |
|\ | | | | | replace pkg_resources with importlib.metadata | ||||
| * | replace pkg_resources with importlib.metadata | Doug Hellmann | 2020-07-12 | 4 | -12/+22 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | Ran isort | Todd Leonhardt | 2020-07-11 | 7 | -6/+7 |
| | |||||
* | Minor cleanup. Removed some experiments that weren't supposed to be included | Eric Lin | 2020-07-11 | 5 | -28/+13 |
| | |||||
* | external test plugin tests and coverage should now run | Eric Lin | 2020-07-11 | 18 | -124/+125 |
| | |||||
* | Copied cmd2 ext test into cmd2 baseline and linked up invoke | Eric Lin | 2020-07-11 | 15 | -15/+817 |
| | |||||
* | Swap out tox for nox | Eric Lin | 2020-07-08 | 9 | -106/+246 |
| | |||||
* | Fixed command finalization example | Kevin Van Brunt | 2020-07-07 | 1 | -1/+1 |
| | |||||
* | Merge pull request #947 from python-cmd2/pyscript_docs | Todd Leonhardt | 2020-07-03 | 5 | -4/+118 |
|\ | | | | | Further additions to pyscript documenntation for Issue #644 | ||||
| * | Move line that seemed out of place at the very end to before the "advanced" ↵ | Todd Leonhardt | 2020-06-27 | 1 | -3/+3 |
| | | | | | | | | section | ||||
| * | Tweak doc8 config to allow for longer maximum line length in Sphinx ↵ | Todd Leonhardt | 2020-06-22 | 1 | -1/+1 |
| | | | | | | | | documentation *.rst files | ||||
| * | Further additions to pyscript documenntation for Issue #644 | Eric Lin | 2020-06-22 | 4 | -0/+114 |
|/ | |||||
* | Added 1.1 release date to CHANGELOG1.1.0 | Todd Leonhardt | 2020-06-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #942 from python-cmd2/eol_35 | Kevin Van Brunt | 2020-06-05 | 1 | -5/+6 |
|\ | | | | | Replace Python 2.7 EOL message in readme with EOL message for Python 3.5 | ||||
| * | Replace Python 2.7 EOL message in readme with an EOL message for Python 3.5 | Todd Leonhardt | 2020-06-04 | 1 | -5/+6 |
|/ | |||||
* | Merge pull request #941 from python-cmd2/hint_bug | Todd Leonhardt | 2020-06-02 | 6 | -91/+266 |
|\ | | | | | Hint bug | ||||
| * | Removed divider row from tab completion hint table | Kevin Van Brunt | 2020-06-01 | 1 | -1/+1 |
| | | |||||
| * | Optimized imports | Kevin Van Brunt | 2020-06-01 | 1 | -2/+1 |
| | | |||||
| * | Updated change log | Kevin Van Brunt | 2020-06-01 | 1 | -0/+2 |
| | | |||||
| * | Merge branch 'master' into hint_bug | Kevin Van Brunt | 2020-06-01 | 10 | -45/+178 |
| |\ | |/ |/| | |||||
* | | Merge pull request #937 from python-cmd2/exceptions | Todd Leonhardt | 2020-05-29 | 10 | -45/+178 |
|\ \ | | | | | | | Exception handling | ||||
| * | | Updated change log | Kevin Van Brunt | 2020-05-28 | 1 | -1/+10 |
| | | | |||||
| * | | Updated docs | Kevin Van Brunt | 2020-05-28 | 2 | -1/+20 |
| | | | |||||
| * | | Removed pwarning() calls when command raises SystemExit | Kevin Van Brunt | 2020-05-28 | 3 | -3/+54 |
| | | | | | | | | | | | | Added unit tests | ||||
| * | | Made following changes to onecmd_plus_hooks() | Kevin Van Brunt | 2020-05-07 | 2 | -21/+29 |
| | | | | | | | | | | | | | | | 1. Added SystemExit handling by warning the user it's occured and setting stop to True 2. KeyboardInterrupts won't be raised if stop is already set to True. | ||||
| * | | Added SkipPostcommandHooks exception and made Cmd2ArgparseError inherit from it. | Kevin Van Brunt | 2020-05-07 | 6 | -25/+71 |
|/ / | | | | | | | Both exception classes have been added to the public API. | ||||
| * | Simplied table divider code for ease of reading | Kevin Van Brunt | 2020-06-01 | 1 | -3/+5 |
| | | |||||
| * | Changed how SimpleTable creates divider when divider_char is wide. It no ↵ | Kevin Van Brunt | 2020-06-01 | 3 | -60/+102 |
| | | | | | | | | longer stretches the width of the table. | ||||
| * | Added unit tests for base_width() | Kevin Van Brunt | 2020-05-28 | 1 | -3/+54 |
| | | |||||
| * | Changed SimpleTable.base_width() to a class method and added equivalent ↵ | Kevin Van Brunt | 2020-05-28 | 1 | -10/+30 |
| | | | | | | | | method to BorderedTable. |