summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make sys.stdout check clearer.HEADmasterAndrew Clark IV2023-05-021-1/+1
|
* Simplify sys.stdout checkAndrew Clark IV2023-05-021-37/+36
|
* Check if sys.stdout is NoneAndrew Clark IV2023-05-021-36/+37
|
* rl_utils: Verify `readline.__doc__ is not None`netanelc3052023-05-021-1/+1
|
* Merge pull request #1258 from python-cmd2/clipboardkotfu2023-02-277-66/+106
|\ | | | | allow_clipboard and other clipboard improvements
| * format cleanupkotfu2023-02-011-1/+0
| |
| * Add missing dev dependencies for black and isortkotfu2023-02-011-0/+2
| |
| * Fix changelog from master mergekotfu2023-02-011-0/+2
| |
| * Merge branch 'master' into clipboardkotfu2023-02-0135-121/+86
| |\ | |/ |/| | | | | # Conflicts: # CHANGELOG.md
* | Deprecate support for Python 3.6 and remove dependency on attrs (#1257)Todd Leonhardt2023-01-3135-120/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | * Start deprecation of Python 3.6 * Removed dependency on attrs and replaced with dataclasses * Fix typing * Added comments to assist with dropping support of Python versions in the future. --------- Co-authored-by: Kevin Van Brunt <kmvanbrunt@gmail.com>
| * Fix import formattingkotfu2023-01-301-0/+1
| |
| * Add documentation for allow_clipboard attributekotfu2023-01-304-17/+42
| |
| * Remove erroneously introduced importkotfu2023-01-281-1/+0
| |
| * Add allow_clipboard for #1225kotfu2023-01-283-51/+67
|/
* 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).