Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed AttributeError in rl_get_prompt() when prompt is None. | Kevin Van Brunt | 2021-10-11 | 1 | -24/+14 |
| | |||||
* | Updated async_alert() to account for self.prompt not matching Readline's ↵ | Kevin Van Brunt | 2021-09-14 | 1 | -17/+23 |
| | | | | current prompt. | ||||
* | Added cmd2.Cmd method to determine what ArgparseCompleter type to use | Kevin Van Brunt | 2021-09-01 | 1 | -6/+19 |
| | |||||
* | Refactored custom ArgparseCompleter functionality so they will now be set ↵ | Kevin Van Brunt | 2021-09-01 | 1 | -29/+21 |
| | | | | | | using methods on ArgumentParser objects. This fixes issue where subcommands did not use the correct custom ArgparseCompleter type. | ||||
* | Added self.last_result unit tests for run_script, _relative_run_script, and ↵ | Kevin Van Brunt | 2021-08-25 | 1 | -0/+1 |
| | | | | set commands. | ||||
* | Fixed extra space appended to each alias by "alias list" command. | Kevin Van Brunt | 2021-08-25 | 1 | -6/+8 |
| | | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands. | ||||
* | All cmd2 built-in commands now populate self.last_result | Kevin Van Brunt | 2021-08-23 | 1 | -6/+65 |
| | |||||
* | Merge branch 'master' into topic_width | Kevin Van Brunt | 2021-08-23 | 1 | -28/+41 |
|\ | |||||
| * | Applied black format | Eric Lin | 2021-08-23 | 1 | -6/+9 |
| | | |||||
| * | * New function `set_default_command_completer_type()` allows developer to ↵ | Eric Lin | 2021-08-23 | 1 | -28/+38 |
| | | | | | | | | | | | | | | | | | | extend and modify the behavior of `ArgparseCompleter`. * New function `register_argparse_argument_parameter()` allows developers to specify custom parameters to be passed to the argparse parser's `add_argument()` method. These parameters will become accessible in the resulting argparse Action object when modifying `ArgparseCompleter` behavior. | ||||
* | | set command output now uses SimpleTable. | Kevin Van Brunt | 2021-08-19 | 1 | -31/+58 |
| | | | | | | | | | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show. | ||||
* | | Updated _print_topics() to use SimpleTable | Kevin Van Brunt | 2021-08-11 | 1 | -28/+34 |
| | | |||||
* | | Updated print_topics() and columnize() to account for ANSI styles and wide ↵ | Kevin Van Brunt | 2021-07-26 | 1 | -1/+75 |
|/ | | | | characters | ||||
* | Fixing tests on Python 3.10 | Kevin Van Brunt | 2021-06-17 | 1 | -1/+1 |
| | |||||
* | Updated error message when invalid persistent history file is read | Kevin Van Brunt | 2021-06-14 | 1 | -1/+4 |
| | |||||
* | Sorted exception list | Kevin Van Brunt | 2021-06-14 | 1 | -1/+1 |
| | |||||
* | Compressing JSON history files | Kevin Van Brunt | 2021-06-14 | 1 | -9/+14 |
| | |||||
* | Converted persistent history files from pickle to JSON format | Kevin Van Brunt | 2021-06-14 | 1 | -30/+19 |
| | |||||
* | Updated documentation. Added support for calling cmd2.Cmd.run_editor() with ↵ | Kevin Van Brunt | 2021-05-25 | 1 | -2/+2 |
| | | | | no argument. | ||||
* | Merge branch 'master' into make-run_editor-public | Todd Leonhardt | 2021-05-24 | 1 | -5/+10 |
|\ | |||||
| * | do_eof() now just calls the quit function | Kevin Van Brunt | 2021-05-17 | 1 | -5/+10 |
| | | |||||
* | | Make _run_editor() public | Simon J. Rowe | 2021-05-14 | 1 | -3/+3 |
|/ | |||||
* | Removed cmd2.Cmd.quit_on_sigint. | Kevin Van Brunt | 2021-04-30 | 1 | -14/+7 |
| | |||||
* | Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -13/+50 |
| | | | | | | support stopping a text script which ran the shell command. On POSIX systems, shell commands and processes being piped to are now run in the user's preferred shell instead of /bin/sh. | ||||
* | Changed default behavior of runcmds_plus_hooks() to not stop when Ctrl-C is ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -4/+5 |
| | | | | pressed and instead run the next command in its list. | ||||
* | Renamed silent_startup_script to silence_startup_script for clarity | Kevin Van Brunt | 2021-04-28 | 1 | -4/+4 |
| | |||||
* | Updated main code to use f-strings | Kevin Van Brunt | 2021-04-13 | 1 | -118/+89 |
| | |||||
* | Add mypy validation action | Eric Lin | 2021-04-06 | 1 | -1/+1 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 1 | -17/+16 |
| | |||||
* | history, py_bridge, transcript now passs mypy | Eric Lin | 2021-04-06 | 1 | -3/+3 |
| | |||||
* | Command function formats defined and decorators.py updated with the defined ↵ | Eric Lin | 2021-04-06 | 1 | -0/+1 |
| | | | | signatures | ||||
* | More mypy fixes | Eric Lin | 2021-04-06 | 1 | -6/+8 |
| | |||||
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 1 | -30/+25 |
| | | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage. | ||||
* | Refactored _perform_completion() to remove need for a cast() call | Kevin Van Brunt | 2021-04-02 | 1 | -15/+17 |
| | | | | Changed CommandResult.stderr to a str instead of Optional[str] | ||||
* | More mypy validation changes. cmd2.py is nearly fully mypy compliant now. | Eric Lin | 2021-04-02 | 1 | -49/+57 |
| | |||||
* | More things to make mypy happy. | Eric Lin | 2021-04-02 | 1 | -115/+135 |
| | |||||
* | Changed History to use OrderDict to support Python 3.6 in non-CPython ↵ | Kevin Van Brunt | 2021-03-30 | 1 | -1/+2 |
| | | | | environments. | ||||
* | Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. | Kevin Van Brunt | 2021-03-30 | 1 | -129/+102 |
| | | | | | | | | | | Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Removed ability to run Python commands from the command line with py. Made banners and exit messages of Python and IPython consistent. Changed utils.is_text_file() to raise OSError if file cannot be read. | ||||
* | Fixed type hintsipy_locals | Kevin Van Brunt | 2021-03-25 | 1 | -5/+2 |
| | |||||
* | Removed ipy's access to the CLI's globals() dictionary | Kevin Van Brunt | 2021-03-24 | 1 | -26/+29 |
| | |||||
* | ipy command now includes all of self.py_locals in the IPython environment | Kevin Van Brunt | 2021-03-24 | 1 | -25/+30 |
| | |||||
* | No longer using -1 as an exit codeexit_code | Kevin Van Brunt | 2021-03-23 | 1 | -2/+2 |
| | |||||
* | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | Kevin Van Brunt | 2021-03-23 | 1 | -2/+4 |
| | |||||
* | Updating comment | Eric Lin | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Updated out of date comment | Eric Lin | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 1 | -46/+106 |
| | |||||
* | Added tests | Eric Lin | 2021-03-18 | 1 | -8/+13 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 1 | -19/+40 |
| | | | | | | | | registered CommandSets for settables. Settables can now set any attribute on any object passed to it. The name the user sees may be set to a different value than what the actual attribute is. Cmd2 will now aggregate all settables on the cmd2.Cmd instance with each installed CommandSet. | ||||
* | Corrected help text for alias command | Kevin Van Brunt | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Updated comments | Kevin Van Brunt | 2021-03-03 | 1 | -6/+7 |
| |