summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update release date in CHANGELOGTodd Leonhardt2020-07-131-1/+1
|
* Updated CHANGELOGTodd Leonhardt2020-07-121-0/+6
|
* Merge pull request #953 from dhellmann/drop-pkg-resourcesTodd Leonhardt2020-07-124-12/+22
|\ | | | | replace pkg_resources with importlib.metadata
| * replace pkg_resources with importlib.metadataDoug Hellmann2020-07-124-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 isortTodd Leonhardt2020-07-117-6/+7
|
* Minor cleanup. Removed some experiments that weren't supposed to be includedEric Lin2020-07-115-28/+13
|
* external test plugin tests and coverage should now runEric Lin2020-07-1118-124/+125
|
* Copied cmd2 ext test into cmd2 baseline and linked up invokeEric Lin2020-07-1115-15/+817
|
* Swap out tox for noxEric Lin2020-07-089-106/+246
|
* Fixed command finalization exampleKevin Van Brunt2020-07-071-1/+1
|
* Merge pull request #947 from python-cmd2/pyscript_docsTodd Leonhardt2020-07-035-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 Leonhardt2020-06-271-3/+3
| | | | | | | | section
| * Tweak doc8 config to allow for longer maximum line length in Sphinx ↵Todd Leonhardt2020-06-221-1/+1
| | | | | | | | documentation *.rst files
| * Further additions to pyscript documenntation for Issue #644Eric Lin2020-06-224-0/+114
|/
* Added 1.1 release date to CHANGELOG1.1.0Todd Leonhardt2020-06-061-1/+1
|
* Merge pull request #942 from python-cmd2/eol_35Kevin Van Brunt2020-06-051-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.5Todd Leonhardt2020-06-041-5/+6
|/
* Merge pull request #941 from python-cmd2/hint_bugTodd Leonhardt2020-06-026-91/+266
|\ | | | | Hint bug
| * Removed divider row from tab completion hint tableKevin Van Brunt2020-06-011-1/+1
| |
| * Optimized importsKevin Van Brunt2020-06-011-2/+1
| |
| * Updated change logKevin Van Brunt2020-06-011-0/+2
| |
| * Merge branch 'master' into hint_bugKevin Van Brunt2020-06-0110-45/+178
| |\ | |/ |/|
* | Merge pull request #937 from python-cmd2/exceptionsTodd Leonhardt2020-05-2910-45/+178
|\ \ | | | | | | Exception handling
| * | Updated change logKevin Van Brunt2020-05-281-1/+10
| | |
| * | Updated docsKevin Van Brunt2020-05-282-1/+20
| | |
| * | Removed pwarning() calls when command raises SystemExitKevin Van Brunt2020-05-283-3/+54
| | | | | | | | | | | | Added unit tests
| * | Made following changes to onecmd_plus_hooks()Kevin Van Brunt2020-05-072-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 Brunt2020-05-076-25/+71
|/ / | | | | | | Both exception classes have been added to the public API.
| * Simplied table divider code for ease of readingKevin Van Brunt2020-06-011-3/+5
| |
| * Changed how SimpleTable creates divider when divider_char is wide. It no ↵Kevin Van Brunt2020-06-013-60/+102
| | | | | | | | longer stretches the width of the table.
| * Added unit tests for base_width()Kevin Van Brunt2020-05-281-3/+54
| |
| * Changed SimpleTable.base_width() to a class method and added equivalent ↵Kevin Van Brunt2020-05-281-10/+30
| | | | | | | | method to BorderedTable.
| * Updated argparse_completer to use TableCreator for the hint tableKevin Van Brunt2020-05-285-74/+133
|/
* Merge pull request #931 from python-cmd2/branching_strategyTodd Leonhardt2020-04-2542-63/+143
|\ | | | | Added info on SemVer and branching strategy to CONTRIBUTING.md
| * Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-2442-63/+143
|/ | | | | | | 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
* Merge pull request #929 from python-cmd2/completion_docsKevin Van Brunt2020-04-235-25/+80
|\ | | | | Completion docs
| * Completion doc updatesKevin Van Brunt2020-04-232-13/+11
| |
| * More completion doc updatesKevin Van Brunt2020-04-231-2/+2
| |
| * Updated tab completion documentationKevin Van Brunt2020-04-233-9/+48
| |
| * Documented CompletionError classKevin Van Brunt2020-04-232-4/+22
|/
* Merge pull request #928 from python-cmd2/subcmd_aliasesKevin Van Brunt2020-04-233-16/+86
|\ | | | | Fixed argparse usage text
| * Updated _set_parser_prog() so future calls to add_parser() will set the ↵Kevin Van Brunt2020-04-232-2/+13
| | | | | | | | | | | | correct prog value This makes dynamically adding subcommands after the CLI starts easier.
| * Fixed issue where subcommand usage text could contain a subcommand alias ↵Kevin Van Brunt2020-04-233-15/+74
|/ | | | instead of the actual name
* Fixed conda documentationKevin Van Brunt2020-04-231-1/+1
|
* Merge pull request #927 from python-cmd2/which_editor_testTodd Leonhardt2020-04-231-8/+3
|\ | | | | Fix unit test which made incorrect assumption about vi editor
| * Fix unit test which made incorrect assumption that vi editor would exist on ↵Todd Leonhardt2020-04-231-8/+3
|/ | | | all Linux systems
* Fix doc8 whitespace issueTodd Leonhardt2020-04-231-1/+1
|
* Merge pull request #916 from python-cmd2/table_creatorKevin Van Brunt2020-04-2318-262/+1506
|\ | | | | Initial commit of table creation API
| * Added table creation feature to change logKevin Van Brunt2020-04-221-0/+6
| |
| * Merge branch 'master' into table_creatorKevin Van Brunt2020-04-224-22/+78
| |\ | |/ |/|