| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| | |
table_display.py example now uses tableformatter instead of tabulate
|
| | |
| |
| |
| |
| | |
- 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
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
Also:
- Improved some comments
- Put the argparse args for selecting grid style in a mutually exclusive group
|
| | |
| |
| |
| | |
the grid style
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | | |
"invoke clean" will now also cleanup mypy daemon artifacts
|
| | |\ \
| |/ /
|/| | |
|
| | |\ \ |
|
| | |\ \ \ |
|
| | | | | | |
|
| | | | | |\
| |_|_|_|/
|/| | | | |
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
Added some explanation of CompletionItem usage in code
|
| | |\ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | | |\
| |_|_|_|/
|/| | | | |
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
Example added demonstrating bash completion bridging argcomplete with AutoCompleter
|
| | |\ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | | |
|
| | | |/ /
| |/| |
| | | |
| | | | |
AutoCompleter
|
| | | | |\
| |_|_|/
|/| | | |
|
| |\ \ \ \
| |/ / /
|/| | | |
Fix bug for startup script with spaces
|
| |/ / / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | | |
same table entries formatted as both an iterable of iterable as well as an iterable of objects.
|
| | |/
|/|
| |
| | |
Changed the table_display.py example to use the tableformatter module which resuls in nicer looking tables.
|
| |\ \
| | |
| | | |
Deprecated CmdResult helper class and promoted CommandResult
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Removed unused class member
|
| |/ / / |
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
Corrected how we force a redisplay in pyreadline
|
| |/ / |
|
| |\ \
| | |
| | | |
Moved clipboard/pastebuffer functionality to new file clipboard.py
|
| |/ /
| |
| |
| |
| | |
Also:
- Converted global can_clip variable to an instance attribute of cmd2.Cmd class
|
| |\ \
| | |
| | | |
Updated CODEOWNERS to reflect who the experts are
|
| | | |
| | |
| | |
| | |
| | | |
Also:
- Added files to .gitignore for mypy plugin for PyCharm
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Added pager and pager_chop attributes to Cmd class
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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 ;-)
|
| | |\ \ \
| |/ / /
|/| | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
code setions
This is my quick and dirty attempt at this effort.
Please feel free to modify as you see fit.
|