Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2020-02-05 | 1 | -1/+1 |
| | |||||
* | Removed unnecessary inheritance from object | Kevin Van Brunt | 2020-02-04 | 1 | -1/+1 |
| | |||||
* | Updated example transcripts | Todd Leonhardt | 2020-02-04 | 2 | -2/+2 |
| | |||||
* | Added cmd2.utils.Settable to the cmd2 namespace and updated examples and docs | Todd Leonhardt | 2020-02-04 | 10 | -11/+32 |
| | |||||
* | Renamed locals_in_py to self_in_py | Todd Leonhardt | 2020-01-27 | 8 | -8/+8 |
| | | | | 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 | 3 | -7/+3 |
| | | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt | ||||
* | Improved example in initialiation docs | Todd Leonhardt | 2020-01-26 | 1 | -0/+60 |
| | |||||
* | Merge branch 'master' into generating_output_docs | Todd Leonhardt | 2020-01-09 | 5 | -22/+36 |
|\ | | | | | | | | | | | # Conflicts: # docs/features/generating_output.rst # docs/features/settings.rst | ||||
| * | Merge branch 'master' into ansi_to_style | Kevin Van Brunt | 2020-01-07 | 1 | -6/+20 |
| |\ | |||||
| | * | Updated dynamic commands example to add help category | Kevin Van Brunt | 2020-01-06 | 1 | -6/+20 |
| | | |