Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into ac_parser | Todd Leonhardt | 2018-08-24 | 1 | -0/+43 |
|\ | |||||
| * | Added a couple unit tests of the exit code feature | Todd Leonhardt | 2018-08-23 | 1 | -4/+2 |
| | | |||||
| * | Added way of returning a non-zero exit code to the shell | Todd Leonhardt | 2018-08-23 | 1 | -0/+45 |
| | | |||||
* | | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵ | Kevin Van Brunt | 2018-08-24 | 1 | -7/+4 |
|/ | | | | easier to format help/description text | ||||
* | Copied and reduced the tab_autocompletion example to specifically exercise ↵ | Eric Lin | 2018-08-19 | 1 | -0/+240 |
| | | | | | | updating the argparse object during init instead of durng the class construction. | ||||
* | Updated argparse_completer to automatically set the matches_sorted flag for ↵ | Eric Lin | 2018-08-01 | 1 | -5/+7 |
| | | | | tabular results. Updated the example to demonstrate pre-sorted tabular results. | ||||
* | Fix Sphinx warning due to _static directory | Todd Leonhardt | 2018-07-30 | 1 | -2/+3 |
| | | | | | Also: - Made alias_startup.py example robust as to what directory it is launched from | ||||
* | Add example and documentation for #452 | kotfu | 2018-07-29 | 1 | -0/+114 |
| | |||||
* | Address feedback in PR | kotfu | 2018-07-21 | 1 | -2/+2 |
| | |||||
* | Add hook example | kotfu | 2018-07-21 | 1 | -0/+115 |
| | |||||
* | Rows with very high population density now have foreground text color set to red | Todd Leonhardt | 2018-06-28 | 1 | -10/+28 |
| | |||||
* | Made table more readable when colored module is installed | Todd Leonhardt | 2018-06-27 | 1 | -1/+1 |
| | |||||
* | Deleted unused constant for DEFAULT_GRID | Todd Leonhardt | 2018-06-27 | 1 | -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 Leonhardt | 2018-06-27 | 1 | -20/+28 |
| | | | | the grid style | ||||
* | Fixed table width for Mumbai | Todd Leonhardt | 2018-06-27 | 1 | -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_display | Todd Leonhardt | 2018-06-26 | 1 | -0/+98 |
|\ | |||||
| * | Just added some comments at the top of the example to try to give some context | Todd Leonhardt | 2018-06-26 | 1 | -1/+18 |
| | | |||||
| * | Example added demonstrating bash completion bridging argcomplete with ↵ | Eric Lin | 2018-06-26 | 1 | -0/+81 |
| | | | | | | | | AutoCompleter | ||||
* | | Added city names in their native tongue in parentheses to demonstrate ↵ | Todd Leonhardt | 2018-06-26 | 1 | -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 Lin | 2018-06-26 | 1 | -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 tabulate | Todd Leonhardt | 2018-06-26 | 1 | -17/+60 |
|/ | | | | Changed the table_display.py example to use the tableformatter module which resuls in nicer looking tables. | ||||
* | Deprecated CmdResult helper class and promoted CommandResult | Todd Leonhardt | 2018-06-23 | 2 | -5/+8 |
| | | | | | | | | | | | | | | 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. | ||||
* | Altered behavior further to lean towards giving the developer more power ↵ | Todd Leonhardt | 2018-06-16 | 1 | -12/+30 |
| | | | | | | | | | | | | | 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 | ||||
* | Merge branch 'master' into ppaged_pager_env | Todd Leonhardt | 2018-06-13 | 1 | -3/+2 |
|\ | |||||
| * | Added a check to verify the existence of a descriptive header. Added a ↵ | Eric Lin | 2018-06-13 | 1 | -3/+2 |
| | | | | | | | | 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 | -6/+15 |
|/ | | | | | | | | | | | 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 | ||||
* | Merge branch 'master' into autocompleter | Kevin Van Brunt | 2018-06-06 | 1 | -21/+2 |
|\ | |||||
| * | Simplify subcommnads.py example | Todd Leonhardt | 2018-05-31 | 1 | -21/+2 |
| | | |||||
* | | Adds possible support for tabular tab completion results. | Eric Lin | 2018-06-06 | 1 | -1/+17 |
|/ | |||||
* | Fixed conditional.py script | Todd Leonhardt | 2018-05-26 | 2 | -3/+4 |
| | | | | | | Also: - Made self.locals_in_py = True for main.py and examples/python_scripting.py - This makes debugging easier in the embedded IPython shell provided by the opt-in ipy command | ||||
* | Fix import stragglers | kotfu | 2018-05-23 | 4 | -12/+17 |
| | |||||
* | Standardize cmd2 imports in tests and examples | kotfu | 2018-05-23 | 16 | -66/+58 |
| | |||||
* | Fixes problem with not passing the parameter hint suppression down to ↵ | Eric Lin | 2018-05-22 | 1 | -0/+4 |
| | | | | | | | | sub-commands Added hint suppression on a per-parameter basis Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion. - Hinting is still enabled by default but can be suppressed in the helper function. | ||||
* | Changed some unit tests to use pytest-mock instead of mocker/monkeypatch ↵ | Eric Lin | 2018-05-19 | 1 | -3/+12 |
| | | | | | | | because they were failing for me. Added detection of ==SUPPRESS== in subcommand group names to avoid printing it in the help hint. Added some examples to tab_autocompletion to demonstrate how to tie in to cmd2 path_complete | ||||
* | Some fixes to autocompleter to make it easier to do delimited and file ↵ | Eric Lin | 2018-05-18 | 1 | -1/+19 |
| | | | | completion. Saving state - more to come. | ||||
* | Extract submenu code to new project | kotfu | 2018-05-09 | 1 | -109/+0 |
| | |||||
* | Another attempt at getting it working on travis. | Eric Lin | 2018-05-04 | 1 | -3/+0 |
| | |||||
* | Merge branch 'test_merge' into test_ply_merge | Eric Lin | 2018-05-02 | 17 | -56/+71 |
|\ | |||||
| * | Merge branch 'bash_completion' into bash_to_pyscript | Eric Lin | 2018-05-02 | 17 | -55/+67 |
| |\ | |||||
| | * | Addressed comments. | Eric Lin | 2018-05-02 | 2 | -5/+2 |
| | | | |||||
| | * | Added checks to detect if argcomplete is installed. | Eric Lin | 2018-04-25 | 1 | -12/+17 |
| | | | |||||
| | * | Removed the expensive imports from cmd2/__init__.py | Eric Lin | 2018-04-25 | 17 | -52/+63 |
| | | | | | | | | | | | | | | | | | | | | | Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369 | ||||
| * | | Added support for customizing the pyscript bridge pystate object name. | Eric Lin | 2018-05-02 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | Removed all legacy pystate objects. Changed default behavior to clear _last_result before each command Added utility for creating named tuples with default values Added tests to exercise new changes. | ||||
| * | | Added more tests exercising the pyscript bridge. | Eric Lin | 2018-04-30 | 2 | -0/+2 |
| | | | |||||
| * | | Added support for translating function positional and keyword arguments into ↵ | Eric Lin | 2018-04-28 | 1 | -1/+1 |
| |/ | | | | | | | | | | | argparse command positional and flag arguments. Added initial set of tests | ||||
* | | Clean up documentation references to pyparsing | kotfu | 2018-04-29 | 1 | -4/+1 |
| | | |||||
* | | multilineCommands -> multiline_commands | kotfu | 2018-04-29 | 4 | -4/+4 |
|/ | |||||
* | Added support for using cmd2 application class methods as an argument ↵ | Eric Lin | 2018-04-23 | 1 | -1/+5 |
| | | | | completion provider. The default completion implementation in Cmd2 automatically passes self to AutoCompleter to be passed to the class method. | ||||
* | Addressed PR comments. Simplified some of the implementation per PR comments. | Eric Lin | 2018-04-23 | 1 | -111/+85 |
| | |||||
* | Added some more comments for clarification. | Eric Lin | 2018-04-21 | 1 | -1/+1 |
| |