Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | | | | | | | | | | | Updated comments | Kevin Van Brunt | 2020-09-01 | 2 | -2/+6 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Refactored ArgparseCompleter to support custom completion | Kevin Van Brunt | 2020-09-01 | 3 | -67/+59 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Refactored read_input to support custom completion | Kevin Van Brunt | 2020-08-31 | 1 | -59/+138 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Refactored complete() to handle custom behavior from read_input() | Kevin Van Brunt | 2020-08-31 | 1 | -74/+101 | |
| |/ / / / / / / / / / / / | ||||||
| * | | | | | | | | | | | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-28 | 2 | -13/+13 | |
| |\ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | | | | | Removed Namespace.__statement__ | Kevin Van Brunt | 2020-08-27 | 2 | -4/+0 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-27 | 4 | -18/+44 | |
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * \ \ \ \ \ \ \ \ \ \ \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-25 | 3 | -15/+16 | |
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-20 | 2 | -24/+39 | |
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | | | | | | | | Documented support for standalone functions being used as completers and ↵ | Kevin Van Brunt | 2020-08-18 | 2 | -9/+8 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | choices_providers. Added unit tests for this case. | |||||
| * | | | | | | | | | | | | | | | | Replaced choices_function / choices_method with choices_provider. | Kevin Van Brunt | 2020-08-13 | 6 | -201/+139 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py | |||||
* | | | | | | | | | | | | | | | | | Add in isort changes | Todd Leonhardt | 2021-01-31 | 13 | -47/+149 | |
| | | | | | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | | | | Attempt to fix remaining black failures | Todd Leonhardt | 2021-01-31 | 1 | -13/+34 | |
| | | | | | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | | | | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 17 | -697/+964 | |
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | | | Fixed syntax error in `pip install` command for GitHub Actions | Todd Leonhardt | 2021-01-30 | 1 | -28/+29 | |
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Refactored do_history command to extract a helper method to fix a flake8 warning about high complexity | |||||
* | | | | | | | | | | | | | | | Printing error when OSError other than FileNotFoundError occurs when ↵ | Kevin Van Brunt | 2021-01-29 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deleting persistent history file with history --clear command. | |||||
* | | | | | | | | | | | | | | | Added more validation to TableCreator | Kevin Van Brunt | 2021-01-29 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | | Merge branch 'master' into header_tabs | Todd Leonhardt | 2021-01-28 | 1 | -2/+2 | |
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | | | | | | | Update conditional pyreadline3 dependency for Win | Kyle King | 2021-01-27 | 1 | -2/+2 | |
| | |_|_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | | Fixed FileNotFoundError which occurred when running 'history --clear' and no ↵header_tabs | Kevin Van Brunt | 2021-01-28 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | history file existed. | |||||
* | | | | | | | | | | | | | | | Fixed width calculation when table column headers had tabs | Kevin Van Brunt | 2021-01-28 | 1 | -17/+27 | |
|/ / / / / / / / / / / / / / | ||||||
* | | | | | | | | | | | | | | Fix flake8 error and make type hinting consistent | Todd Leonhardt | 2021-01-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | | | Merge branch 'master' into silent_startsilent_start | Todd Leonhardt | 2021-01-23 | 1 | -0/+1 | |
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | | | | | | Added py.typed to signal that we support type annotations for PEP-561. Fixes ↵ | Eric Lin | 2021-01-23 | 1 | -0/+1 | |
| | |_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #1036 | |||||
* | | | | | | | | | | | | | | Added option to run startup scripts silently | Kevin Van Brunt | 2021-01-22 | 1 | -2/+7 | |
|/ / / / / / / / / / / / / | ||||||
* | | | | | | | | | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 14 | -68/+267 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minor import changes. | |||||
* | | | | | | | | | | | | | Update editor list for Linux/Mac - add joe and change order of various ↵ | Todd Leonhardt | 2020-11-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | graphical editors | |||||
* | | | | | | | | | | | | | Updated utils.find_editor() to include more Windows editors | Kevin Van Brunt | 2020-11-19 | 1 | -22/+20 | |
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | ||||||
* | | | | | | | | | | | | feat(utils): probe editors in system path | Mikhail Ushanov | 2020-11-17 | 1 | -21/+20 | |
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com> | |||||
* | | | | | | | | | | | Fixed bug where setting always_show_hint=True did not show a hint when ↵settable_hint | Kevin Van Brunt | 2020-11-12 | 1 | -2/+6 | |
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | completing Settables | |||||
* | | | | | | | | | | Merge branch 'master' into docstr_fmt | Todd Leonhardt | 2020-11-11 | 1 | -1/+1 | |
|\ \ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | | Fixed tab completion crash on Windowswin_tab_crash | Kevin Van Brunt | 2020-11-11 | 1 | -1/+1 | |
| | | | | | | | | | | | ||||||
* | | | | | | | | | | | specifying is not none on coditions | Bambu | 2020-11-11 | 1 | -2/+2 | |
| | | | | | | | | | | | ||||||
* | | | | | | | | | | | Merge branch 'master' into docstr_fmt | Todd Leonhardt | 2020-11-11 | 1 | -3/+2 | |
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | ||||||
| * | | | | | | | | | | Replace with_argparser_and_unknown_args in docs | Kyle King | 2020-11-08 | 1 | -3/+2 | |
| | | | | | | | | | | | ||||||
* | | | | | | | | | | | fix flake8 error | Bambu | 2020-10-19 | 1 | -1/+0 | |
| | | | | | | | | | | | ||||||
* | | | | | | | | | | | Format multiline docstrings to match other help messages | Bambu | 2020-10-09 | 1 | -4/+10 | |
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed cmd2 do_cmd to dedent docstrings using `pydoc.getdoc`. This patch provides output for docstrings that look like using argparse or a single line docstring | |||||
* | | | | | | | | | | Fixed issue where instantiating more than one cmd2-based class which uses ↵duplicate_subcommand | Kevin Van Brunt | 2020-09-30 | 2 | -11/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the @as_subcommand_to decorator resulted in duplicated help text in the base command the subcommands belong to. | |||||
* | | | | | | | | | | Fixed issue where quoted redirectors and terminators in aliases and macros ↵ | Kevin Van Brunt | 2020-09-30 | 2 | -25/+75 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | were not being restored when read from a startup script. | |||||
* | | | | | | | | | | Only setting subcommand handler on attached_parser and not its parent parser | Kevin Van Brunt | 2020-09-28 | 1 | -4/+6 | |
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | ||||||
* | | | | | | | | | Small refactorsilence | Kevin Van Brunt | 2020-09-17 | 1 | -6/+6 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Merge branch 'master' into silence | Kevin Van Brunt | 2020-09-17 | 4 | -12/+46 | |
|\ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | Minor type hinting fixes. | Eric Lin | 2020-09-11 | 1 | -7/+14 | |
| | | | | | | | | | | ||||||
| * | | | | | | | | | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 4 | -5/+32 | |
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | |||||
* | | | | | | | | | Added --silent flag to alias/macro create. | Kevin Van Brunt | 2020-09-10 | 1 | -12/+36 | |
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Added --with_silent flag to alias/macro list. | |||||
* | | | | | | | | argparse tab completion now groups flag names which run the same action. ↵ | Kevin Van Brunt | 2020-09-09 | 1 | -1/+19 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text. | |||||
* | | | | | | | | Added type hint | Kevin Van Brunt | 2020-09-05 | 1 | -2/+1 | |
| |_|_|_|_|_|/ |/| | | | | | | ||||||
* | | | | | | | Added always_show_hint setting | Kevin Van Brunt | 2020-09-05 | 2 | -44/+73 | |
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion | |||||
* | | | | | | Added CommandSet.on_unregistered() | Kevin Van Brunt | 2020-09-03 | 2 | -9/+18 | |
| | | | | | | ||||||
* | | | | | | Added on_registered() callback to CommandSet | Kevin Van Brunt | 2020-09-01 | 2 | -2/+10 | |
| |_|_|_|/ |/| | | | |