Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed issue where quoted redirectors and terminators in aliases and macros ↵ | Kevin Van Brunt | 2020-09-30 | 1 | -10/+13 |
| | | | | | | were not being restored when read from a startup script. | ||||
* | Added --silent flag to alias/macro create. | Kevin Van Brunt | 2020-09-10 | 1 | -0/+30 |
| | | | | Added --with_silent flag to alias/macro list. | ||||
* | Added unit tests for CommandSet callbacks | Kevin Van Brunt | 2020-09-01 | 1 | -4/+4 |
| | |||||
* | the with_argparse() decorator was incorrectly using a parsed statement ↵1.3.7 | Eric Lin | 2020-08-27 | 1 | -0/+17 |
| | | | | object to search for the original function arguments. Switched to search for the original statement value instead | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -2/+2 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Removed pwarning() calls when command raises SystemExit | Kevin Van Brunt | 2020-05-28 | 1 | -0/+11 |
| | | | | Added unit tests | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -4/+15 |
| | | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes | ||||
* | Fix unit test which made incorrect assumption that vi editor would exist on ↵ | Todd Leonhardt | 2020-04-23 | 1 | -8/+3 |
| | | | | all Linux systems | ||||
* | Merge branch 'master' into table_creator | Todd Leonhardt | 2020-04-15 | 1 | -26/+8 |
|\ | |||||
| * | Simplfied _redirect_output() by raising exception instead of returning bool | Kevin Van Brunt | 2020-04-11 | 1 | -26/+8 |
| | | |||||
* | | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -4/+2 |
|/ | |||||
* | Add unit tests for Ctrl-C stopping scripts/transcripts | Kevin Van Brunt | 2020-03-26 | 1 | -0/+22 |
| | |||||
* | do_shell() now saves the return code of the command it runs in ↵ | Kevin Van Brunt | 2020-03-20 | 1 | -0/+4 |
| | | | | self.last_result for use in pyscripts | ||||
* | Moved custom cmd2 exceptions to a separate file and removed them from public API | Todd Leonhardt | 2020-02-18 | 1 | -2/+2 |
| | |||||
* | Updated documentation and tests | Kevin Van Brunt | 2020-02-17 | 1 | -1/+8 |
| | |||||
* | Fixed bug where pyscripts could edit cmd2.Cmd.py_locals dictionary. | Kevin Van Brunt | 2020-02-14 | 1 | -6/+9 |
| | | | | | | | | | Fixed bug where cmd2 set sys.path[0] for a pyscript to its cwd instead of the script's directory. Fixed bug where sys.path was not being restored after a pyscript ran. Setting the following pyscript variables: __name__: __main__ __file__: script path (as typed) Removed do_py.run() function since it didn't handle arguments and offered no benefit over run_pyscript. | ||||
* | Renamed set command's -l/--long flag to -v/--verbose for consistency with ↵ | Kevin Van Brunt | 2020-02-10 | 1 | -2/+2 |
| | | | | help and history commands | ||||
* | Corrected issue where the actual new value was not always being printed in ↵ | Kevin Van Brunt | 2020-02-10 | 1 | -8/+11 |
| | | | | | | | | do_set. Fixed do_set unit test. Made allow_ansi setter error message consistent with str_to_bool. Updated a docstring | ||||
* | No longer displaying list of subcommands in usage text of alias and macro | Kevin Van Brunt | 2020-02-05 | 1 | -2/+2 |
| | |||||
* | Added remove_settable() since cmd2 has add_settable() | Kevin Van Brunt | 2020-02-05 | 1 | -1/+5 |
| | | | | Documented Settable.onchange_cb | ||||
* | Added support to do_set() for setting a parameter to an empty string as well ↵ | Kevin Van Brunt | 2020-02-05 | 1 | -1/+11 |
| | | | | as something resembling an argparse flag (e.g. -h) | ||||
* | Fixed a bug in a very unusual case and added some unit tests | Todd Leonhardt | 2020-02-04 | 1 | -0/+7 |
| | |||||
* | Updated CHANGELOG and made a few minor tweaks | Todd Leonhardt | 2020-02-04 | 1 | -39/+0 |
| | |||||
* | Updated set command to support tab completion of values | Kevin Van Brunt | 2020-02-04 | 1 | -26/+7 |
| | |||||
* | Renamed locals_in_py to self_in_py | Todd Leonhardt | 2020-01-27 | 1 | -4/+4 |
| | | | | This more accurately reflects what it controls | ||||
* | Made three public attributes of cmd2.Cmd no longer settable at runtime by ↵ | Todd Leonhardt | 2020-01-27 | 1 | -6/+2 |
| | | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt | ||||
* | Merge branch 'master' into ansi_to_style | Kevin Van Brunt | 2019-12-19 | 1 | -45/+26 |
|\ | |||||
| * | Updating unit tests | Kevin Van Brunt | 2019-12-17 | 1 | -0/+15 |
| | | |||||
| * | Updating unit tests | Kevin Van Brunt | 2019-12-17 | 1 | -45/+11 |
| | | |||||
* | | Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵ | Kevin Van Brunt | 2019-12-19 | 1 | -34/+34 |
|/ | | | | sequences are handled | ||||
* | Added apply_style to pwarning() | Kevin Van Brunt | 2019-11-23 | 1 | -0/+44 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2019-11-17 | 1 | -0/+12 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2019-11-17 | 1 | -0/+18 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2019-11-17 | 1 | -118/+74 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2019-11-16 | 1 | -43/+45 |
| | |||||
* | Moving a bit of code around to shrink cmd2.py | Kevin Van Brunt | 2019-10-31 | 1 | -2/+2 |
| | | | | | This includes moving cmd2 decorators into a new file called decorators.py Moved some constants from cmd2.py to constants.py | ||||
* | Added unit tests | Kevin Van Brunt | 2019-09-24 | 1 | -0/+25 |
| | |||||
* | Added in_script() and in_pyscript() to cmd2.Cmd class | Kevin Van Brunt | 2019-09-23 | 1 | -1/+19 |
| | |||||
* | No longer printing all help text for alias and macro when the subcommand is ↵ | Kevin Van Brunt | 2019-09-17 | 1 | -2/+4 |
| | | | | omitted. Instead allow argparse to handle the error. | ||||
* | Make pyperclip failure error message more specific | Todd Leonhardt | 2019-09-04 | 1 | -1/+1 |
| | |||||
* | No longer treating empty text scripts as an error condition | Kevin Van Brunt | 2019-08-08 | 1 | -1/+1 |
| | |||||
* | Do not print traceback warning text if debug is not a settable parameter | Kevin Van Brunt | 2019-08-08 | 1 | -0/+11 |
| | |||||
* | Merge branch 'master' into verify_command_names | Todd Leonhardt | 2019-08-07 | 1 | -1/+16 |
|\ | |||||
| * | Disabled tab completion during a select call. | Kevin Van Brunt | 2019-08-07 | 1 | -1/+16 |
| | | | | | | | | Added graceful handling of Ctrl-D during select. It now reprompts the user. | ||||
* | | Verifying command names in __init__ | Kevin Van Brunt | 2019-08-07 | 1 | -0/+4 |
|/ | |||||
* | Removed ability for aliases and macros to share names with commands | Kevin Van Brunt | 2019-08-05 | 1 | -38/+8 |
| | |||||
* | Fixed inconsistent parsing/tab completion behavior based on the value of ↵ | Kevin Van Brunt | 2019-08-02 | 1 | -1/+1 |
| | | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic. | ||||
* | Updated unit tests | Kevin Van Brunt | 2019-07-24 | 1 | -7/+6 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-07-24 | 1 | -8/+35 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-07-24 | 1 | -2/+32 |
| |