Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 1 | -1/+1 |
| | |||||
* | Added warning to documentation about how help_foo won't be called for ↵ | Todd Leonhardt | 2018-10-06 | 2 | -6/+5 |
| | | | | | | | command foo if it uses an argparse decorator Also: - Renamed argparse_example.py to decorator_example.py | ||||
* | Added documentation stating that parsers passed to argparse decorators need ↵ | Todd Leonhardt | 2018-10-06 | 1 | -9/+17 |
| | | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround | ||||
* | Moved main.py to exampels/hello_cmd2.py and added some comments | Todd Leonhardt | 2018-10-06 | 1 | -0/+16 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into argparse_remainder | Eric Lin | 2018-10-06 | 4 | -28/+28 |
|\ | |||||
| * | Using sub-command instead of subcommand where possible to be consistent with ↵ | Kevin Van Brunt | 2018-10-05 | 4 | -28/+28 |
| | | | | | | | | argparse | ||||
* | | Fixed a few edge cases: | Eric Lin | 2018-10-06 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | - Once the argument list can match a positional and that positional is tagged with nargs=argparse.REMAINDER it will consume all tokens including flag tokens. AutoCompleter now correctly detects this case will no longer attempt to complete flag tokens - A single-character token that is a flag prefix doesn't count as a flag and is parsed as a value. AutoCompleter now correctly detects this case. | ||||
* | | Added handling of nargs=argparse.REMAINDER in both AutoCompleter and ↵ | Eric Lin | 2018-10-06 | 1 | -1/+1 |
|/ | | | | | | | | ArgparseFunctor Should correctly force all subsequent arguments to go to the REMAINDER argument once it is detected. Re-arranged the command generation in ArgparseFunctor to print flag arguments before positionals Also forces the remainder arguments to always be last. | ||||
* | Made hooks.py executable | Todd Leonhardt | 2018-09-28 | 1 | -0/+0 |
| | |||||
* | Updated abbreviation example to use new cmd2 function to resolve command ↵ | Kevin Van Brunt | 2018-09-28 | 1 | -5/+5 |
| | | | | functions | ||||
* | Addressing code review comments | Kevin Van Brunt | 2018-09-28 | 1 | -1/+1 |
| | |||||
* | Updated a couple files in the examples directory due to changes in alias command | Todd Leonhardt | 2018-09-27 | 2 | -6/+5 |
| | |||||
* | Merged alert_printer stuff from master and resolved conflicts | Todd Leonhardt | 2018-09-25 | 1 | -0/+203 |
|\ | |||||
| * | Merge branch 'master' into alert_printer | Kevin Van Brunt | 2018-09-25 | 1 | -0/+38 |
| |\ | |||||
| * | | Added more examples and documentation | Kevin Van Brunt | 2018-09-25 | 1 | -2/+8 |
| | | | |||||
| * | | Merge branch 'master' into alert_printer | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
| |\ \ | |||||
| * | | | Made async stuff public | Kevin Van Brunt | 2018-09-25 | 1 | -8/+8 |
| | | | | |||||
| * | | | Made demo more instructive | Kevin Van Brunt | 2018-09-23 | 1 | -92/+103 |
| | | | | |||||
| * | | | Added more alerts and updated documentation | Kevin Van Brunt | 2018-09-22 | 1 | -12/+39 |
| | | | | |||||
| * | | | Recreating the thread in preloop to support multiple calls of cmdloop | Kevin Van Brunt | 2018-09-22 | 1 | -1/+3 |
| | | | | |||||
| * | | | Updating prompt in example app | Kevin Van Brunt | 2018-09-21 | 1 | -7/+43 |
| | | | | |||||
| * | | | First version of async printing example | Kevin Van Brunt | 2018-09-21 | 1 | -0/+121 |
| | | | | |||||
* | | | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-25 | 1 | -0/+38 |
|\ \ \ \ | | |_|/ | |/| | | |||||
| * | | | Merge branch 'master' into command_help_noflag | Kevin Van Brunt | 2018-09-25 | 1 | -1/+1 |
| |\ \ \ | | | |/ | | |/| | |||||
| * | | | Added the the ability to format help to the AutoCompleter to support ↵ | Eric Lin | 2018-09-23 | 1 | -0/+38 |
| | |/ | |/| | | | | | | | sub-command specific help lookup. | ||||
* | | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
|\ \ \ | | |/ | |/| | |||||
| * | | Removed a Python3-only comment from an example since Python 2 is no longer ↵ | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
| |/ | | | | | | | supported | ||||
* | | Added optional color argument to poutput() for providing a color escape code ↵ | Todd Leonhardt | 2018-09-24 | 2 | -4/+20 |
| | | | | | | | | | | | | | | | | to colorize the output with Also: - Added optional err_color and war_color arguments to perror() for providing color escape codes - Removed usage of deprecated colorize() method within the examples | ||||
* | | Added plumbum_colors.py example of using plumbum.colors | Todd Leonhardt | 2018-09-23 | 1 | -0/+144 |
| | | |||||
* | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-21 | 2 | -6/+6 |
|\ \ | |/ | |||||
| * | Removed remaining type hints in docstrings | Kevin Van Brunt | 2018-09-21 | 2 | -6/+6 |
| | | |||||
* | | Updated a couple example transcripts now that colors is no longer True/False | Todd Leonhardt | 2018-09-21 | 3 | -6/+4 |
| | | | | | | | | | | Also: - Minor whitespace tweaks to new colors.py example | ||||
* | | cmd2.Cmd.__init__ now initializes colorama and tells it to never strip ANSI ↵ | Todd Leonhardt | 2018-09-19 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | codes since cmd2 deals with that Also: - Finished editing poutput(), ppaged(), and pfeedback() methods to strip ANSI color when appropriate - Changed attr.ib() factory usage so cmd2 is compatible with older versions of attrs | ||||
* | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-19 | 3 | -2/+6 |
|\ \ | |/ | |||||
| * | Added a command which does nothing and produces no output to ↵ | Todd Leonhardt | 2018-09-14 | 1 | -0/+4 |
| | | | | | | | | | | | | alias_startup.py example This is just for some manual edge cases testing. | ||||
| * | Fixed a couple example transcripts which were never updated when the default ↵ | Todd Leonhardt | 2018-09-14 | 2 | -2/+2 |
| | | | | | | | | for locals_in_py changed to False | ||||
* | | Merged master in and resolved conflicts | Todd Leonhardt | 2018-09-04 | 3 | -7/+287 |
|\ \ | |/ | | | | | @kotfu - I hope this doesn't screw you up, but I wanted to minimize some of the merge pain that will likely be coming up soon | ||||
| * | 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. | ||||
* | | First pass at improved colorizing | kotfu | 2018-08-11 | 1 | -0/+143 |
|/ | | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings | ||||
* | 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 |
| |