summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Fixed syntax error in `pip install` command for GitHub ActionsTodd Leonhardt2021-01-301-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 Brunt2021-01-291-0/+3
| | | | deleting persistent history file with history --clear command.
* Added more validation to TableCreatorKevin Van Brunt2021-01-291-0/+4
|
* Merge branch 'master' into header_tabsTodd Leonhardt2021-01-281-2/+2
|\
| * Update conditional pyreadline3 dependency for WinKyle King2021-01-271-2/+2
| |
* | Fixed FileNotFoundError which occurred when running 'history --clear' and no ↵header_tabsKevin Van Brunt2021-01-281-1/+4
| | | | | | | | history file existed.
* | Fixed width calculation when table column headers had tabsKevin Van Brunt2021-01-281-17/+27
|/
* Fix flake8 error and make type hinting consistentTodd Leonhardt2021-01-241-1/+1
|
* Merge branch 'master' into silent_startsilent_startTodd Leonhardt2021-01-231-0/+1
|\
| * Added py.typed to signal that we support type annotations for PEP-561. Fixes ↵Eric Lin2021-01-231-0/+1
| | | | | | | | #1036
* | Added option to run startup scripts silentlyKevin Van Brunt2021-01-221-2/+7
|/
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-2214-68/+267
| | | | minor import changes.
* Update editor list for Linux/Mac - add joe and change order of various ↵Todd Leonhardt2020-11-211-1/+1
| | | | graphical editors
* Updated utils.find_editor() to include more Windows editorsKevin Van Brunt2020-11-191-22/+20
|
* feat(utils): probe editors in system pathMikhail Ushanov2020-11-171-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_hintKevin Van Brunt2020-11-121-2/+6
| | | | completing Settables
* Merge branch 'master' into docstr_fmtTodd Leonhardt2020-11-111-1/+1
|\
| * Fixed tab completion crash on Windowswin_tab_crashKevin Van Brunt2020-11-111-1/+1
| |
* | specifying is not none on coditionsBambu2020-11-111-2/+2
| |
* | Merge branch 'master' into docstr_fmtTodd Leonhardt2020-11-111-3/+2
|\ \ | |/
| * Replace with_argparser_and_unknown_args in docsKyle King2020-11-081-3/+2
| |
* | fix flake8 errorBambu2020-10-191-1/+0
| |
* | Format multiline docstrings to match other help messagesBambu2020-10-091-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_subcommandKevin Van Brunt2020-09-302-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 Brunt2020-09-302-25/+75
| | | | | | were not being restored when read from a startup script.
* Only setting subcommand handler on attached_parser and not its parent parserKevin Van Brunt2020-09-281-4/+6
|
* Small refactorsilenceKevin Van Brunt2020-09-171-6/+6
|
* Merge branch 'master' into silenceKevin Van Brunt2020-09-174-12/+46
|\
| * Minor type hinting fixes.Eric Lin2020-09-111-7/+14
| |
| * Changes default category to be heritable by default - meaning that ↵Eric Lin2020-09-114-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 Brunt2020-09-101-12/+36
|/ | | | Added --with_silent flag to alias/macro list.
* argparse tab completion now groups flag names which run the same action. ↵Kevin Van Brunt2020-09-091-1/+19
| | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text.
* Added type hintKevin Van Brunt2020-09-051-2/+1
|
* Added always_show_hint settingKevin Van Brunt2020-09-052-44/+73
| | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion
* Added CommandSet.on_unregistered()Kevin Van Brunt2020-09-032-9/+18
|
* Added on_registered() callback to CommandSetKevin Van Brunt2020-09-012-2/+10
|
* Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-271-9/+9
| | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator.
* the with_argparse() decorator was incorrectly using a parsed statement ↵1.3.7Eric Lin2020-08-271-4/+4
| | | | object to search for the original function arguments. Switched to search for the original statement value instead
* The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-264-18/+44
| | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2.
* Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-253-14/+15
| | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
* Fixed typoKevin Van Brunt2020-08-211-1/+1
|
* Added validation of subcommand handler attributesEric Lin2020-08-202-8/+17
|
* Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is ↵Kevin Van Brunt2020-08-191-16/+22
| | | | loaded during cmd2.Cmd.__init__().
* Fixed tab completion bug when using CompletionItem on an argument whose ↵Kevin Van Brunt2020-08-131-15/+24
| | | | metavar is a tuple
* Fixed bug when trying to format help text of argument which used a tuple as ↵Kevin Van Brunt2020-08-121-18/+27
| | | | its metavar
* When passing a ns_provider to an argparse command, will now attempt to ↵Eric Lin2020-08-124-44/+65
| | | | resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app
* Breaking change: Removed cmd2 app as a required second parameter toEric Lin2020-08-125-68/+26
| | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set.
* Minor fixes to enable Python 3.5.2 supportEric Lin2020-08-111-2/+7
|
* Adding explicit python 3.5.3 test to nox, travis.Eric Lin2020-08-101-1/+10
| | | | Copied 3.5.4 definition of typing.Deque
* Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's ↵Eric Lin2020-08-101-0/+8
| | | | constructor