summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #456 from python-cmd2/table_display0.9.2Todd Leonhardt2018-06-286-36/+166
|\ | | | | table_display.py example now uses tableformatter instead of tabulate
| * Updated CHANGELOGTodd Leonhardt2018-06-281-1/+3
| | | | | | | | | | - Set date for 0.9.2 release to today - Added comment about how we have improved the table_display.py example with the use of the new tableformatter module
| * Bump version to 0.9.2 in preparation for releaseTodd Leonhardt2018-06-284-4/+4
| |
| * Rows with very high population density now have foreground text color set to redTodd Leonhardt2018-06-281-10/+28
| |
| * Made table more readable when colored module is installedTodd Leonhardt2018-06-271-1/+1
| |
| * Deleted unused constant for DEFAULT_GRIDTodd Leonhardt2018-06-271-19/+19
| | | | | | | | | | | | Also: - Improved some comments - Put the argparse args for selecting grid style in a mutually exclusive group
| * table and object_table commands now accept argparse arguments for formatting ↵Todd Leonhardt2018-06-271-20/+28
| | | | | | | | the grid style
| * Merge branch 'master' into table_displayTodd Leonhardt2018-06-271-2/+1
| |\ | |/ |/|
* | Merge pull request #455 from python-cmd2/mypy_cleanupTodd Leonhardt2018-06-271-2/+1
|\ \ | | | | | | "invoke clean" will now also cleanup mypy daemon artifacts
| * \ Merge branch 'master' into mypy_cleanupTodd Leonhardt2018-06-271-3/+30
| |\ \ | |/ / |/| |
| * | Merge branch 'master' into mypy_cleanupTodd Leonhardt2018-06-261-0/+98
| |\ \
| * \ \ Merge branch 'master' into mypy_cleanupTodd Leonhardt2018-06-261-1/+1
| |\ \ \
| * | | | "invoke clean" will now also cleanup mypy daemon artifactsTodd Leonhardt2018-06-251-2/+1
| | | | |
| | | | * Merge branch 'master' into table_displayTodd Leonhardt2018-06-271-3/+30
| | | | |\ | |_|_|_|/ |/| | | |
* | | | | Merge pull request #460 from python-cmd2/autocompleterTodd Leonhardt2018-06-271-3/+30
|\ \ \ \ \ | |_|_|/ / |/| | | | Added some explanation of CompletionItem usage in code
| * | | | Merge branch 'master' into autocompleterTodd Leonhardt2018-06-2714-112/+309
| |\ \ \ \ | |/ / / / |/| | | |
| * | | | Added some explanation of CompletionItem usage in codeEric Lin2018-06-131-3/+30
| | | | |
| | | | * Fixed table width for MumbaiTodd Leonhardt2018-06-271-2/+1
| | | | | | | | | | | | | | | | | | | | Changed to use Hindi name for Mumbai based on Google Translate instead of a Google search and the table width and underlying wide character width calculation appears to be working fine.
| | | | * Merge branch 'master' into table_displayTodd Leonhardt2018-06-261-0/+98
| | | | |\ | |_|_|_|/ |/| | | |
* | | | | Merge pull request #459 from python-cmd2/argcomplete_exampleTodd Leonhardt2018-06-261-0/+98
|\ \ \ \ \ | |_|_|/ / |/| | | | Example added demonstrating bash completion bridging argcomplete with AutoCompleter
| * | | | Merge branch 'master' into argcomplete_exampleTodd Leonhardt2018-06-261-1/+1
| |\ \ \ \ | |/ / / / |/| | | |
| * | | | Just added some comments at the top of the example to try to give some contextTodd Leonhardt2018-06-261-1/+18
| | | | |
| * | | | Example added demonstrating bash completion bridging argcomplete with ↵Eric Lin2018-06-261-0/+81
| | |/ / | |/| | | | | | | | | | AutoCompleter
| | | * Merge branch 'master' into table_displayTodd Leonhardt2018-06-261-1/+1
| | | |\ | |_|_|/ |/| | |
* | | | Merge pull request #458 from python-cmd2/startup_spacesTodd Leonhardt2018-06-261-1/+1
|\ \ \ \ | |/ / / |/| | | Fix bug for startup script with spaces
| * | | Fix bug for startup script with spacesTodd Leonhardt2018-06-261-1/+1
|/ / /
| | * Added city names in their native tongue in parentheses to demonstrate ↵Todd Leonhardt2018-06-261-17/+12
| | | | | | | | | | | | | | | | | | | | | unicode capability - Mandarin, Urdu, and Turkish all seem to be working fine - But something is up with Hindi - the table/colum width calculation is messed up for Mumbai
| | * Updating the example with unicode characters as well as demonstrating the ↵Eric Lin2018-06-261-21/+86
| | | | | | | | | | | | same table entries formatted as both an iterable of iterable as well as an iterable of objects.
| | * table_display.py example now uses tableformatter instead of tabulateTodd Leonhardt2018-06-261-17/+60
| |/ |/| | | | | Changed the table_display.py example to use the tableformatter module which resuls in nicer looking tables.
* | Merge pull request #451 from python-cmd2/command_resultTodd Leonhardt2018-06-258-21/+31
|\ \ | | | | | | Deprecated CmdResult helper class and promoted CommandResult
| * \ Merge branch 'master' into command_resultTodd Leonhardt2018-06-251-1/+0
| |\ \ | |/ / |/| |
* | | Merge pull request #453 from python-cmd2/unused_paramTodd Leonhardt2018-06-251-1/+0
|\ \ \ | | | | | | | | Removed unused class member
| * | | Removed unused class memberKevin Van Brunt2018-06-251-1/+0
|/ / /
| * | Deprecated CmdResult helper class and promoted CommandResultTodd Leonhardt2018-06-238-21/+31
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | These classes are subtly different, particularly in terms of their truthiness. CmdResult - attributes: out, err, war - truthy: if err is falsy CommandResult - attributes: stdout, stderr, data - truthy: if err is falsy AND data is not None So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.
* | Merge pull request #447 from python-cmd2/pyreadlineTodd Leonhardt2018-06-221-4/+6
|\ \ | | | | | | Corrected how we force a redisplay in pyreadline
| * | Corrected how we force a redisplay in pyreadlineKevin Van Brunt2018-06-221-4/+6
|/ /
* | Merge pull request #445 from python-cmd2/cleanup_clipTodd Leonhardt2018-06-203-63/+63
|\ \ | | | | | | Moved clipboard/pastebuffer functionality to new file clipboard.py
| * | Moved clipboard/pastebuffer functionality to new file clipboard.pyTodd Leonhardt2018-06-183-63/+63
|/ / | | | | | | | | Also: - Converted global can_clip variable to an instance attribute of cmd2.Cmd class
* | Merge pull request #444 from python-cmd2/ownersTodd Leonhardt2018-06-172-0/+44
|\ \ | | | | | | Updated CODEOWNERS to reflect who the experts are
| * | Added multiple owners for cmd2/cmd2.pyTodd Leonhardt2018-06-172-0/+5
| | | | | | | | | | | | | | | Also: - Added files to .gitignore for mypy plugin for PyCharm
| * | Merge branch 'master' into ownersTodd Leonhardt2018-06-173-22/+66
| |\ \ | |/ / |/| |
* | | Merge pull request #441 from python-cmd2/ppaged_pager_envTodd Leonhardt2018-06-173-22/+66
|\ \ \ | | | | | | | | Added pager and pager_chop attributes to Cmd class
| * | | Improved docstring for ppaged()Todd Leonhardt2018-06-161-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 Leonhardt2018-06-163-29/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Updated CHANGELOG to reflect the recent changesTodd Leonhardt2018-06-161-2/+6
| | | |
| * | | Dramatically changed the approach to this PRTodd Leonhardt2018-06-163-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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_envTodd Leonhardt2018-06-133-7/+11
| |\ \ \ | |/ / / |/| | |
| * | | Fix unit test on WindowsTodd Leonhardt2018-06-111-1/+1
| | | |
| * | | Added pager settable parameter to control the command used to display paged ↵Todd Leonhardt2018-06-115-19/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Updated CODEOWNERS file to try to reflect who the experts are for various ↵Todd Leonhardt2018-06-161-0/+39
| |/ / |/| | | | | | | | | | | | | | | | | | | | code setions This is my quick and dirty attempt at this effort. Please feel free to modify as you see fit.