Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Add command finalization hooks | kotfu | 2018-07-05 | 1 | -6/+50 | |
| | | ||||||
* | | Postcommand hooks implemented | kotfu | 2018-06-22 | 1 | -11/+20 | |
| | | ||||||
* | | Revise precommand hooks to use `data` parameter | kotfu | 2018-06-21 | 1 | -3/+3 | |
| | | ||||||
* | | Use `data` instead of `params` | kotfu | 2018-06-21 | 1 | -7/+7 | |
| | | ||||||
* | | Revised postparsing hooks | kotfu | 2018-06-21 | 1 | -6/+26 | |
| | | ||||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-06-21 | 1 | -56/+8 | |
|\ \ | |/ | | | | | | | # Conflicts: # cmd2/cmd2.py | |||||
| * | Moved clipboard/pastebuffer functionality to new file clipboard.py | Todd Leonhardt | 2018-06-18 | 1 | -58/+9 | |
| | | | | | | | | | | Also: - Converted global can_clip variable to an instance attribute of cmd2.Cmd class | |||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-06-19 | 1 | -284/+327 | |
|\ \ | |/ | ||||||
| * | Improved docstring for ppaged() | Todd Leonhardt | 2018-06-16 | 1 | -0/+2 | |
| | | | | | | | | | | | | Added a couple lines to the ppaged() docstring to help explain the advantages and disadvantages of chopping vs wrapping and when it would be best to do one as opposed to the other. This should help developers understand the full potential of the ppaged() method. | |||||
| * | Altered behavior further to lean towards giving the developer more power ↵ | Todd Leonhardt | 2018-06-16 | 1 | -15/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | over the end user Specifically: - PAGER environment variable is not used by default to set cmd2.Cmd.pager - This is done to ensure a consistent behavior of cmd2 applications across users by default Developers are free to set pager and pager_chop in the __init__() for their class derived from cmd2.Cmd differently to ensure whatever behavior they desire. Also: - Updated the paged_output.py example to demonstrate using ppaged() with both wrapped and chopped/truncated text | |||||
| * | Dramatically changed the approach to this PR | Todd Leonhardt | 2018-06-16 | 1 | -16/+29 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - pager is no longer a settable parameter which can be changed by the end user at runtime - The cmd2.Cmd class now has two different attributes: - pager - contains command-line command to use to display wrapped text using a pager - By default set to PAGER environment variable if it exists - 'more' on Windows or 'less -RXF' on POSIX - pager_chop - contains command-line command to use to display chopped (truncated) text using a pager - Set to same thing as pager unless pager starts with 'less', in which case a ' -S' gets appended - The cmd2.Cmd.ppaged() method now has an additional optional argument "chop" which defaults to False - If chop is True, then self.pager_chop gets used as the pager - If chop is False, then slef.pager gets used as the pager I couldn't think of any single solution which would somehow magically make all stakeholders perfectly happy. Hopefully this is a reasonable enough compromise that everyone feels that they can get what they need without too much pain ;-) | |||||
| * | Merge branch 'master' into ppaged_pager_env | Todd Leonhardt | 2018-06-13 | 1 | -3/+3 | |
| |\ | ||||||
| | * | Added a check to verify the existence of a descriptive header. Added a ↵ | Eric Lin | 2018-06-13 | 1 | -3/+3 | |
| | | | | | | | | | | | | constant. Updated example to use the constant. | |||||
| * | | Added pager settable parameter to control the command used to display paged ↵ | Todd Leonhardt | 2018-06-11 | 1 | -11/+13 | |
| |/ | | | | | | | | | | | | | | | | | | | | | output Also: - ppaged() now uses the pager settable parameter - By default the pager settable parameter uses the PAGER environment variable if present - If PAGER environment variable is not present, pager gets set to: - "less -SXRF" on POSIX OSes (macOS and Linux) - "more" on Windows | |||||
| * | Added .mypy_cache to .gitignore | Todd Leonhardt | 2018-06-10 | 1 | -6/+8 | |
| | | | | | | | | | | Also: - Added a few more type hints | |||||
| * | Added yet more type hinting | Todd Leonhardt | 2018-06-10 | 1 | -77/+84 | |
| | | ||||||
| * | Added more type hinting | Todd Leonhardt | 2018-06-09 | 1 | -64/+56 | |
| | | ||||||
| * | Working on improving type hinting | Todd Leonhardt | 2018-06-09 | 1 | -104/+112 | |
| | | | | | | | | | | Also: - Refactored perror() to remove a rarely used optional argument which was unecessary | |||||
| * | Merged from master and resolved conflicts | Todd Leonhardt | 2018-06-07 | 1 | -21/+44 | |
| |\ | | | | | | | | | | | | | Also: - Fixed a couple warnings which showed up in VScode. | |||||
| | * | Merge branch 'master' into autocompleter | Todd Leonhardt | 2018-06-07 | 1 | -11/+18 | |
| | |\ | ||||||
| | | * | OSError is enough to catch the errors we are concerned with | Kevin Van Brunt | 2018-06-07 | 1 | -2/+2 | |
| | | | | ||||||
| | | * | Fixed a couple potential crashes on opening files | Todd Leonhardt | 2018-06-06 | 1 | -11/+18 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed crashes that occur when attempting to open a file in a non-existent directory or a when the filename is too long. Specifically fixed this when redirecting output to a file and when saving a transcript based on the history. Also added a couple unit tests related to the fixes. | |||||
| | * | | Writing completion header to sys.stdout instead of self.stdout | Kevin Van Brunt | 2018-06-06 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Added ability to print a header above tab-completion suggestions | Kevin Van Brunt | 2018-06-06 | 1 | -0/+12 | |
| | | | | ||||||
| | * | | display_matches is no longer restricted to delimited strings | Kevin Van Brunt | 2018-06-06 | 1 | -15/+17 | |
| | |/ | ||||||
| * | | Allowing quoted paths when piping and redirecting | Kevin Van Brunt | 2018-06-07 | 1 | -1/+1 | |
| | | | ||||||
| * | | Fix unexpected redirection behavior | Todd Leonhardt | 2018-06-07 | 1 | -1/+1 | |
| |/ | | | | | | | | | | | | | | | New behavior: - help > name with space - redirects to a file called "name" (without the quotes) - help > "name with space" - redirects to a file called "name with space" (without the quotes) | |||||
* | | preloop and postloop hooks must declare None return type | kotfu | 2018-06-03 | 1 | -2/+2 | |
| | | ||||||
* | | Preloop and postloop hooks now validate signature | kotfu | 2018-06-03 | 1 | -8/+27 | |
| | | ||||||
* | | Precommand hooks now check typing of passed callables | kotfu | 2018-06-03 | 1 | -1/+29 | |
| | | ||||||
* | | Begin converting precmd to passing and returning a data object | kotfu | 2018-06-03 | 1 | -1/+5 | |
| | | ||||||
* | | reminder to check for registered function signatures | kotfu | 2018-05-31 | 1 | -0/+5 | |
| | | ||||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-05-31 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Bumped version to 0.9.2a for twine upload testing on test.pypi.org | Todd Leonhardt | 2018-05-30 | 1 | -1/+1 | |
| | | ||||||
* | | Clean up imports | kotfu | 2018-05-28 | 1 | -2/+1 | |
| | | ||||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-05-28 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Update version to 0.9.1 for #4210.9.1 | kotfu | 2018-05-28 | 1 | -1/+1 | |
| | | ||||||
| * | Update version to 0.9.0.1 for #421 | kotfu | 2018-05-28 | 1 | -1/+1 | |
| | | ||||||
| * | Update version to 0.9.1rc1 to try and fix #421 | kotfu | 2018-05-28 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-05-27 | 1 | -14/+0 | |
|\ \ | |/ | | | | | | | # Conflicts: # cmd2/cmd2.py | |||||
| * | Reverted preparse behavior to where it was (i.e. currently unused) | Todd Leonhardt | 2018-05-27 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed bug where preparse() wasn't called before parsing | Todd Leonhardt | 2018-05-27 | 1 | -10/+1 | |
| | | | | | | | | | | Also: - Deleted postparse() since it was redundant with postparsing_precmd() | |||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-05-27 | 1 | -9/+0 | |
|\ \ | |/ | ||||||
| * | Removed unused function | Kevin Van Brunt | 2018-05-26 | 1 | -9/+0 | |
| | | ||||||
* | | implement precommand and postcommand hooks | kotfu | 2018-05-27 | 1 | -2/+25 | |
| | | ||||||
* | | Add preloop and postloop hook capabilities | kotfu | 2018-05-26 | 1 | -0/+14 | |
| | | ||||||
* | | Preparsing hooks not feasible, discarding. | kotfu | 2018-05-26 | 1 | -1/+0 | |
| | | ||||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-05-26 | 1 | -19/+130 | |
|\ \ | |/ | ||||||
| * | Merge branch 'master' into pyshell_readline | Kevin Van Brunt | 2018-05-25 | 1 | -319/+40 | |
| |\ | ||||||
| * | | Updated comments and removed unneeded call | Kevin Van Brunt | 2018-05-25 | 1 | -8/+11 | |
| | | |