Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵import_wrapping | Eric Lin | 2021-01-21 | 28 | -48/+183 |
| | | | | minor import changes. | ||||
* | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 1 | -0/+80 |
| | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | ||||
* | Added always_show_hint setting | Kevin Van Brunt | 2020-09-05 | 1 | -0/+1 |
| | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion | ||||
* | Fixed type hints in example code1.3.9 | Kevin Van Brunt | 2020-09-03 | 1 | -1/+1 |
| | |||||
* | Updated docs | Kevin Van Brunt | 2020-09-01 | 3 | -5/+5 |
| | |||||
* | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵ | Kevin Van Brunt | 2020-08-27 | 1 | -2/+2 |
| | | | | | | 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 functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 2 | -2/+2 |
| | | | | | | | 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 Brunt | 2020-08-25 | 1 | -1/+1 |
| | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | Breaking change: Removed cmd2 app as a required second parameter to | Eric Lin | 2020-08-12 | 6 | -51/+51 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Minor housekeeping. Updated CODEOWNERS with recent additions | Eric Lin | 2020-08-07 | 1 | -1/+1 |
| | |||||
* | Moved code which copies subparser's settings to _register_subcommands(). | Kevin Van Brunt | 2020-08-07 | 1 | -5/+7 |
| | | | | | Changed alias and macro commands to use as_subcommand_to() decorator. Updated CommandSet subcommand example to use help and description text. | ||||
* | Removed obsolete argument1.3.0 | Kevin Van Brunt | 2020-08-04 | 1 | -1/+1 |
| | |||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 3 | -3/+3 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 1 | -3/+3 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Suggested PR Fixes. | Eric Lin | 2020-08-04 | 1 | -3/+3 |
| | | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator. | ||||
* | Adds support for injectable subcommands as part of CommandSet | Eric Lin | 2020-08-04 | 1 | -0/+110 |
| | | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands. | ||||
* | updated imports | Eric Lin | 2020-08-04 | 5 | -5/+128 |
| | | | | Added additional documentation | ||||
* | Updates the example to remove usage of the now remove ability to | Eric Lin | 2020-08-04 | 4 | -43/+56 |
| | | | | | | | | | | register arbitrary functions as commands. Added example that demonstrates use of each of the command decorators with CommandSets. Adds unit test that verifies that CommandSets containing decorators load and process commands correctly. Updated the constructor declaration for Cmd2ArgumentParser to explicitly re-declare argparse constructor parameters. | ||||
* | cleanup | Eric Lin | 2020-08-04 | 1 | -7/+7 |
| | |||||
* | Sort imports using isort | Todd Leonhardt | 2020-08-04 | 2 | -2/+2 |
| | |||||
* | Fixes issue with locating help_ annd complete_ functions when autoloading ↵ | Eric Lin | 2020-08-04 | 1 | -0/+17 |
| | | | | | | command functions Adds handling of some edge cases. More thorough test coverage. | ||||
* | Some minor cleanup of how imports work. Fixed issue with help documentation ↵ | Eric Lin | 2020-08-04 | 2 | -4/+2 |
| | | | | | | for CommandSet commands. Issue #943 | ||||
* | Initial implementation of modular command loading | Eric Lin | 2020-08-04 | 4 | -0/+265 |
| | | | | | | | | | | Issue #943 New class CommandSet can be used to tag a class as a command class. If the constructor is simple, the object will automatically be instantiated and loaded. New register_command decorator to tag any arbitrary function as a command. | ||||
* | Updated argparse_completer to use TableCreator for the hint table | Kevin Van Brunt | 2020-05-28 | 1 | -1/+1 |
| | |||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 15 | -14/+20 |
| | | | | | | | 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 | ||||
* | Updated tab completion documentation | Kevin Van Brunt | 2020-04-23 | 1 | -1/+1 |
| | |||||
* | Removed tableformatter example since cmd2 now has its own table creator ↵ | Kevin Van Brunt | 2020-04-21 | 1 | -204/+0 |
| | | | | library and example program | ||||
* | Added configurable padding to BorderedTable/AlternatingTable | Kevin Van Brunt | 2020-04-19 | 1 | -1/+1 |
| | | | | Updated comments | ||||
* | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -0/+77 |
| | |||||
* | Added documentation about decorator order and updated an example | Todd Leonhardt | 2020-04-09 | 1 | -6/+23 |
| | | | | | Also: - Deal with warnings when building docs with Sphinx 3.0.0 | ||||
* | Update scripting docs. Closes #765. | kotfu | 2020-02-28 | 1 | -13/+19 |
| | |||||
* | Updated python scripting exmaple to illustrate how | Eric Lin | 2020-02-24 | 2 | -21/+25 |
| | | | | | stdout/stderr is automatically captured in CommandResult during python scripting. Fixes #898 | ||||
* | Added apply_style to CompletionError | Kevin Van Brunt | 2020-02-18 | 1 | -2/+1 |
| | | | | Simplified error class structure in argparse_completer.py | ||||
* | Added use of CompletionError to basic completion example | Kevin Van Brunt | 2020-02-18 | 1 | -6/+23 |
| | |||||
* | Made CompletionError exception available to non-argparse tab completion | Kevin Van Brunt | 2020-02-17 | 1 | -2/+2 |
| | |||||
* | Fixed missing import | Kevin Van Brunt | 2020-02-13 | 1 | -0/+2 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2020-02-13 | 1 | -5/+5 |
| | |||||
* | Finished argparse completion example | Kevin Van Brunt | 2020-02-13 | 1 | -21/+49 |
| | |||||
* | Wrote examples for CompletionError and CompletionItem | Kevin Van Brunt | 2020-02-13 | 1 | -13/+34 |
| | |||||
* | Start of new argparse completion example | Kevin Van Brunt | 2020-02-13 | 1 | -0/+73 |
| | |||||
* | Removed dash from 'tab complete' string | Kevin Van Brunt | 2020-02-13 | 1 | -6/+6 |
| | |||||
* | Removed use of argparse from basic completion example | Kevin Van Brunt | 2020-02-13 | 1 | -46/+30 |
| | |||||
* | Overhauling tab completion examples | Kevin Van Brunt | 2020-02-12 | 3 | -272/+29 |
| | |||||
* | Updated release data for 1.0.0-rc1 in preparation for a release candidate | Todd Leonhardt | 2020-02-07 | 2 | -2/+2 |
| | | | | | Also: - Updated some very outdated comments in transcript files | ||||
* | Updated plumbum example | Kevin Van Brunt | 2020-02-07 | 1 | -32/+33 |
| | |||||
* | Updated changelog to address removal of ansi.FG_COLORS and ansi.BG_COLORS ↵ | Todd Leonhardt | 2020-02-07 | 1 | -8/+8 |
| | | | | | | | and mention their replacement by ansi.fg and ansi.bg enums Also: - Use ansi.fg in async_printing.py and README.md | ||||
* | Having two parallel datastructures each for foreground and background colors ↵ | Todd Leonhardt | 2020-02-06 | 3 | -7/+6 |
| | | | | | | felt really clunky - now we just have one The Enum classes are now smart and deal with it all. | ||||
* | Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background ↵ | Todd Leonhardt | 2020-02-06 | 1 | -2/+2 |
| | | | | | | colors which style() can now optionally use This is to make it easier to autocomplete color names in an IDE | ||||
* | Fixed example code | Kevin Van Brunt | 2020-02-06 | 1 | -1/+1 |
| | |||||
* | Documentation updates | kotfu | 2020-02-05 | 1 | -3/+7 |
| |