Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cmdloop now checks to see if it is running in the main thread before ↵ | Todd Leonhardt | 2018-10-21 | 1 | -6/+9 |
| | | | | attempting to register a signal handler for SIGINT | ||||
* | Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵ | Todd Leonhardt | 2018-10-18 | 1 | -20/+0 |
| | | | | deprecated in 0.9.5 | ||||
* | Updated outdated header comment in cmd2.py | Todd Leonhardt | 2018-10-14 | 1 | -1/+1 |
| | |||||
* | Refactored | Kevin Van Brunt | 2018-10-13 | 1 | -26/+29 |
| | |||||
* | Argparse commands called as methods of PyscriptBridge now go through ↵ | Kevin Van Brunt | 2018-10-12 | 1 | -14/+15 |
| | | | | onecmd_plus_hooks | ||||
* | Non-argparse commands called as methods of PyscriptBridge now go through ↵ | Kevin Van Brunt | 2018-10-12 | 1 | -1/+6 |
| | | | | onecmd_plus_hooks | ||||
* | You can now call a macro with extra arguments | Kevin Van Brunt | 2018-10-12 | 2 | -7/+17 |
| | |||||
* | Refactored async_alert | Kevin Van Brunt | 2018-10-11 | 1 | -56/+43 |
| | |||||
* | Using wcwidth to calculate display width of prompt | Kevin Van Brunt | 2018-10-11 | 1 | -18/+25 |
| | |||||
* | Do not asynchronously update continuation prompts | Kevin Van Brunt | 2018-10-11 | 1 | -16/+26 |
| | |||||
* | Syle-based refactor | Kevin Van Brunt | 2018-10-11 | 1 | -2/+2 |
| | |||||
* | Fixed ArgparseFunctor to allow flag looking tokens in REMAINDER sections | Kevin Van Brunt | 2018-10-10 | 1 | -2/+4 |
| | |||||
* | Fixed issue where flag at beginning of REMAINDER section was tab completing | Kevin Van Brunt | 2018-10-10 | 1 | -10/+8 |
| | |||||
* | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 2 | -22/+43 |
| | |||||
* | Added tests for token_resembles_flag | Kevin Van Brunt | 2018-10-09 | 1 | -1/+2 |
| | |||||
* | Fixed error where an inner stream like StringIO doesn't have a buffer attribute. | Kevin Van Brunt | 2018-10-09 | 1 | -2/+8 |
| | |||||
* | Added ability for argcompleter to determine difference between flag and ↵ | Kevin Van Brunt | 2018-10-09 | 2 | -15/+37 |
| | | | | negative number | ||||
* | Use argparser to determine if a token looks like an optional | Kevin Van Brunt | 2018-10-07 | 1 | -17/+2 |
| | |||||
* | Allowing negative number values when checking for optional prefix characters | Kevin Van Brunt | 2018-10-07 | 1 | -5/+6 |
| | |||||
* | Added check to prevent optional value strings from being accepted as positionals | Kevin Van Brunt | 2018-10-06 | 1 | -4/+23 |
| | |||||
* | Quoting strings with utility function | Kevin Van Brunt | 2018-10-06 | 1 | -5/+3 |
| | |||||
* | Added documentation stating that parsers passed to argparse decorators need ↵ | Todd Leonhardt | 2018-10-06 | 1 | -2/+2 |
| | | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround | ||||
* | Fixed unit test failures and addressed code review comments | Todd Leonhardt | 2018-10-06 | 2 | -21/+22 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into argparse_remainder | Eric Lin | 2018-10-06 | 3 | -33/+62 |
|\ | |||||
| * | set_window_title() will no longer write to stderr unless self._terminal_lock ↵ | Kevin Van Brunt | 2018-10-05 | 1 | -17/+32 |
| | | | | | | | | can be acquired | ||||
| * | Simplified code | Kevin Van Brunt | 2018-10-05 | 1 | -1/+1 |
| | | |||||
| * | No longer using stderr and self.data together to determine truthiness of a ↵ | Kevin Van Brunt | 2018-10-05 | 1 | -3/+10 |
| | | | | | | | | | | | | | | CommandResult. Either self.data is used or if that's not possible, then self.stderr is used. This provided applications the ability to print to stderr even if an error didn't occur. | ||||
| * | Using sub-command instead of subcommand where possible to be consistent with ↵ | Kevin Van Brunt | 2018-10-05 | 3 | -13/+20 |
| | | | | | | | | argparse | ||||
* | | Fixed a few edge cases: | Eric Lin | 2018-10-06 | 1 | -6/+17 |
| | | | | | | | | | | | | | | | | | | - 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 | 2 | -47/+117 |
|/ | | | | | | | | 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. | ||||
* | Added hyphen to subparser title | Kevin Van Brunt | 2018-10-04 | 1 | -2/+2 |
| | |||||
* | Added title subcommand groups | Kevin Van Brunt | 2018-10-04 | 1 | -2/+2 |
| | |||||
* | Fixed issue introduced in the recent batch of changes that appended to ↵ | Kevin Van Brunt | 2018-10-04 | 1 | -2/+2 |
| | | | | | | history after running a command. This is to avoid out of order history that would result if a command made another call to onecmd(). | ||||
* | Updated docstring | Kevin Van Brunt | 2018-10-03 | 1 | -2/+2 |
| | |||||
* | Updated docstring | Kevin Van Brunt | 2018-10-03 | 1 | -2/+2 |
| | |||||
* | Made encode and error class members of StdSim | Kevin Van Brunt | 2018-10-03 | 1 | -20/+20 |
| | |||||
* | Fixed error where binary data was crashing getvalue. Added accessor methods ↵ | Kevin Van Brunt | 2018-10-03 | 1 | -13/+27 |
| | | | | for retrieving StdSim contents as bytes. | ||||
* | Tweaked some error strings | Kevin Van Brunt | 2018-10-03 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' into py_enhancements | Todd Leonhardt | 2018-10-03 | 1 | -56/+61 |
|\ | |||||
| * | Updated comment | Kevin Van Brunt | 2018-10-03 | 1 | -2/+2 |
| | | |||||
| * | Commands with categories will no longer show in the 'Undocumented commands' ↵ | Kevin Van Brunt | 2018-10-03 | 1 | -22/+32 |
| | | | | | | | | section | ||||
| * | Don't recognize help functions for argparse commands | Kevin Van Brunt | 2018-10-03 | 1 | -7/+7 |
| | | |||||
| * | Fixed argparse help summary when no docstring was provided | Kevin Van Brunt | 2018-10-03 | 1 | -33/+28 |
| | | |||||
* | | Returned cmd_echo default to False except when running a Python command at ↵ | Kevin Van Brunt | 2018-10-02 | 2 | -1/+3 |
| | | | | | | | | the CLI | ||||
* | | Improved documentation | Kevin Van Brunt | 2018-10-02 | 1 | -3/+5 |
| | | |||||
* | | Don't worry about unquoting alias and macro names as they shouldn't be ↵ | Kevin Van Brunt | 2018-10-02 | 1 | -24/+10 |
| | | | | | | | | entered this way anyway | ||||
* | | Default cmd_echo to True in PyscriptBridge so things like 'py app.help()' ↵ | Kevin Van Brunt | 2018-10-02 | 1 | -5/+5 |
| | | | | | | | | will show output | ||||
* | | Changed PyscriptBridge.__getattr__ to raise Attribute error for non-commands | Kevin Van Brunt | 2018-10-02 | 1 | -2/+6 |
| | | |||||
* | | Changed default() to print the actual command run for unknown syntax errors. | Kevin Van Brunt | 2018-10-02 | 1 | -12/+6 |
| | | | | | | | | Fixed default() to run the resolved command instead of raw when default_to_shell is True. | ||||
* | | Added echo parameter for calling commands from Pyscript | Kevin Van Brunt | 2018-10-02 | 2 | -8/+31 |
|/ | | | | Documented py command's parsing limitations |