summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated LICENSE with current year.2.4.3Kevin Van Brunt2023-01-271-1/+1
|
* Updating CHANGELOG for 2.4.3 release.Kevin Van Brunt2023-01-271-1/+1
|
* Removed Python 3.6 testing since the testing network no longer supports it ↵Kevin Van Brunt2023-01-276-6/+8
| | | | | | on Ubuntu. Added Python 3.11 testing support.
* Fixed mypy and flake8 errors.Kevin Van Brunt2023-01-273-4/+6
|
* Fixed ValueError caused when passing Cmd.columnize() strings wider than ↵Kevin Van Brunt2023-01-273-2/+19
| | | | display_width.
* Merge pull request #1253 from python-cmd2/1252-str-to-boolkotfu2022-11-073-23/+43
|\ | | | | Enhance str_to_bool() to accept other types
| * Clean up spacingkotfu2022-11-051-1/+1
| |
| * Add tests for to_bool() when passing boolean valueskotfu2022-11-051-0/+5
| |
| * Fix black errorskotfu2022-11-051-1/+1
| |
| * Update type hints and comments on to_bool()kotfu2022-11-051-5/+8
| |
| * Enhance str_to_bool() to accept other typeskotfu2022-11-053-20/+32
|/ | | | | - Rename str_to_bool() -> to_bool() - Enhance to_bool() so that it accepts and converts bool, int, and float in addition to str
* Use latest version of mypy and fix type hinting accordingly (#1239)Todd Leonhardt2022-07-147-14/+26
| | | | | | | | | | | | * Use latest version of mypy and fix type hinting accordingly Also: - Update Pipfile to never require mock since we only support Python 3.6+ - Remove Azure Pipelines badge from Readme and fix section links there - Added an "inv format" task to run black and isort to auto-format all code before a commit * Try to fix type errors on versions prior to 3.8 * Restored correct types in argparse_custom.py
* Fix YAML indentation error in dependabot.yml (#1237)Todd Leonhardt2022-07-141-2/+2
|
* Remove Azure Pipeline config file and add pip dependency scanning for ↵Todd Leonhardt2022-07-142-58/+5
| | | | Dependabot (#1236)
* Bump actions/setup-python from 2 to 4 (#1235)dependabot[bot]2022-07-145-5/+5
| | | | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Bump github/codeql-action from 1 to 2 (#1234)dependabot[bot]2022-07-141-3/+3
| | | | | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Bump actions/checkout from 2 to 3 (#1233)dependabot[bot]2022-07-146-6/+6
| | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: Included githubactions in the dependabot config (#1231)neilnaveen2022-07-141-0/+6
| | | | | | | | | | | | This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure. Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com> Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* chore: Set permissions for GitHub actions (#1230)Naveen2022-07-145-0/+19
| | | | | | | | | | | | | | | Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com> Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Fixing Sphinx error2.4.2Kevin Van Brunt2022-07-131-1/+1
|
* Updated CHANGELOG for 2.4.2 release.Kevin Van Brunt2022-07-132-2/+7
| | | | Fixed github image URLs in README so they link to the raw data. This fixes issue where the README did not display correctly on pypi.org.
* Fixed duplicate subparser name in test_add_parser_custom_completerMichał Górny2022-05-231-1/+1
| | | | | | | | If I'm not mistaken, the use of the same name for both subparsers was not intentional but a typo. In Python 3.11, this is an error and causes the test to fail. Fixes #1228
* Moved documentation annotation stripping into utility function. Changed ↵Eric Lin2022-04-255-21/+48
| | | | argparse decorator to automatically strip annotations.
* Updated change log for 2.4.1 release2.4.1Kevin Van Brunt2022-04-131-1/+1
|
* Fixed formatting errorKevin Van Brunt2022-04-131-1/+1
|
* Add an educational postcommand hookCase Ploeg2022-04-131-1/+14
| | | | | Not necessary for the sake of the example, but might help some curious individuals get a better feel for how the system works.
* update postparsing hooksCase Ploeg2022-04-131-6/+8
| | | | | | | | | Previously redirection information was lost by the postparsing hooks add_whitespace_hook() and downcase_hook(). This was fine for this simple shell, but sets a bad example for more complicated use cases. To fix this, when parsing the new Statement object, include the `post_command` attribute from the original Statement.
* async_alert() raises a RuntimeError if called from the main thread.Kevin Van Brunt2022-04-132-11/+26
|
* Fixed value for ansi.Bg.YELLOWKevin Van Brunt2022-04-132-1/+6
|
* Fix test suite ansi.allow_style handling (#1217)Jakub Kulík2022-04-131-17/+36
| | | | | * Fix test suite ansi.allow_style handling * Make black happy
* Fixed path to schema image in READMEKevin Van Brunt2022-03-161-1/+1
|
* final changes (#1200)Jerrad2022-03-015-297/+196
| | | Readme facelift from PR #1200
* Fixed spelling in a docstringKevin Van Brunt2022-02-241-1/+1
|
* Fixed type hint in unit test code2.4.0Kevin Van Brunt2022-02-221-2/+3
|
* Updated change log and license for releaseKevin Van Brunt2022-02-222-2/+2
|
* Reduced amount of style characters carried over from previous lines when ↵Kevin Van Brunt2022-02-228-61/+335
| | | | | | | aligning text. Also reduced amount of style characters appended to truncated text. These changes were made to reduce memory usage in certain use cases of tables (e.g. nested colored tables).
* cmd2 now uses pyreadline3 when running any version of Python on WindowsKevin Van Brunt2022-02-179-58/+23
|
* Improved some readline-related commentsKevin Van Brunt2022-02-172-8/+25
|
* Deleted cmd2.fg and cmd2.bg which were deprecated in 2.3.0. Use cmd2.Fg and ↵Kevin Van Brunt2022-02-174-74/+3
| | | | cmd2.Bg instead.
* Fixed issue where tab completion was quoting argparse flags in some cases.Kevin Van Brunt2022-02-163-33/+39
|
* Update modular_commands.rst (#1199)Varun Mittal2022-02-151-2/+2
| | | | | | | | | * Update modular_commands.rst The args given in the example are integers. Direct concatenation to string raises errors * Changed to f-string as per review comment Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Use latest version of black (#1201)Todd Leonhardt2022-02-151-1/+1
|
* Added PassThroughException to __init__.py imports. (#1194)Kevin Van Brunt2022-01-262-2/+9
| | | Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Updates cmd2 External Test Plugin URL (#1193)Evgeniy Vasilev2022-01-261-1/+1
| | | Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
* Added substantial documentation concerning pyscript (#1187)Jerrad2022-01-261-14/+413
| | | | | | | | | | | | | * Added substantial documentation concerning pyscript * Made suggested changes * final changes * fixed grammatical errors Co-authored-by: jay <you@example.com> Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com> Co-authored-by: J A <jand@blah.blah>
* Fixed issue in ansi.async_alert_str() which would raise IndexError if prompt ↵Kevin Van Brunt2022-01-172-1/+3
| | | | was blank. (#1188)
* Added 'no cover' pragma to importKevin Van Brunt2021-12-151-1/+1
|
* Simplified importKevin Van Brunt2021-12-151-12/+3
|
* Added broader exception handling when enabling clipboard functionality via ↵Kevin Van Brunt2021-12-153-7/+13
| | | | pyperclip.
* Updated change log for release2.3.3Kevin Van Brunt2021-11-291-1/+1
|