Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 3 | -4/+13 |
| | | | | | | | 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 | 2 | -1/+24 |
| | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | Added tests for invalid subcommands | Eric Lin | 2020-08-20 | 1 | -0/+63 |
| | |||||
* | Minor formatting changes. Fixed some inaccurate comments | Eric Lin | 2020-08-20 | 1 | -19/+72 |
| | |||||
* | Updated documentation with more explicit discussions on testing | Eric Lin | 2020-08-20 | 1 | -1/+14 |
| | | | | Added unit test to verify command name validation updates. | ||||
* | Fixed tab completion bug when using CompletionItem on an argument whose ↵ | Kevin Van Brunt | 2020-08-13 | 1 | -5/+73 |
| | | | | metavar is a tuple | ||||
* | Add unit test and update CHANGELOG | Todd Leonhardt | 2020-08-12 | 1 | -0/+7 |
| | |||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 1 | -0/+83 |
| | | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 4 | -8/+9 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Moved commandset tests into an isolated test | Eric Lin | 2020-08-04 | 1 | -367/+0 |
| | |||||
* | Sort imports using isort | Todd Leonhardt | 2020-08-04 | 1 | -5/+2 |
| | |||||
* | Added more command validation. Moved some common behavior into private ↵ | Eric Lin | 2020-08-04 | 1 | -9/+51 |
| | | | | functions. | ||||
* | Added explicit tests for dir and setattr. Minor type hinting changes | Eric Lin | 2020-08-04 | 1 | -0/+24 |
| | |||||
* | Fixes issue with locating help_ annd complete_ functions when autoloading ↵ | Eric Lin | 2020-08-04 | 1 | -10/+136 |
| | | | | | | command functions Adds handling of some edge cases. More thorough test coverage. | ||||
* | add ability to remove commands and commandsets | Eric Lin | 2020-08-04 | 2 | -3/+94 |
| | | | | Issue #943 | ||||
* | Added new constructor parameter to flag whether commands should autoload. ↵ | Eric Lin | 2020-08-04 | 1 | -0/+86 |
| | | | | | | Added unit tests. Moved installing commands into separate functions that can be called Issue #943 | ||||
* | Some minor cleanup of how imports work. Fixed issue with help documentation ↵ | Eric Lin | 2020-08-04 | 1 | -3/+9 |
| | | | | | | for CommandSet commands. Issue #943 | ||||
* | Merge branch 'master' into hint_bug | Kevin Van Brunt | 2020-06-01 | 2 | -1/+69 |
|\ | |||||
| * | Removed pwarning() calls when command raises SystemExit | Kevin Van Brunt | 2020-05-28 | 2 | -1/+54 |
| | | | | | | | | Added unit tests | ||||
| * | Added SkipPostcommandHooks exception and made Cmd2ArgparseError inherit from it. | Kevin Van Brunt | 2020-05-07 | 1 | -0/+15 |
| | | | | | | | | Both exception classes have been added to the public API. | ||||
* | | Changed how SimpleTable creates divider when divider_char is wide. It no ↵ | Kevin Van Brunt | 2020-06-01 | 1 | -28/+57 |
| | | | | | | | | longer stretches the width of the table. | ||||
* | | Added unit tests for base_width() | Kevin Van Brunt | 2020-05-28 | 1 | -3/+54 |
| | | |||||
* | | Updated argparse_completer to use TableCreator for the hint table | Kevin Van Brunt | 2020-05-28 | 1 | -42/+52 |
|/ | |||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 13 | -21/+48 |
| | | | | | | | 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 _set_parser_prog() so future calls to add_parser() will set the ↵ | Kevin Van Brunt | 2020-04-23 | 1 | -1/+8 |
| | | | | | | correct prog value This makes dynamically adding subcommands after the CLI starts easier. | ||||
* | Fixed issue where subcommand usage text could contain a subcommand alias ↵ | Kevin Van Brunt | 2020-04-23 | 1 | -10/+52 |
| | | | | instead of the actual name | ||||
* | Fix unit test which made incorrect assumption that vi editor would exist on ↵ | Todd Leonhardt | 2020-04-23 | 1 | -8/+3 |
| | | | | all Linux systems | ||||
* | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-22 | 1 | -5/+32 |
|\ | |||||
| * | Added unit tests for wrappers passing kwargs to command functions | Kevin Van Brunt | 2020-04-21 | 1 | -5/+32 |
| | | |||||
* | | Added unit tests for padding | Kevin Van Brunt | 2020-04-22 | 1 | -0/+31 |
| | | |||||
* | | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-22 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Updated error text | Kevin Van Brunt | 2020-04-20 | 1 | -1/+1 |
| | | |||||
| * | cmd2 now considers ipy a pyscript environment | Kevin Van Brunt | 2020-04-20 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' into table_creator | Todd Leonhardt | 2020-04-15 | 1 | -26/+8 |
|\ \ | |/ | |||||
| * | Simplfied _redirect_output() by raising exception instead of returning bool | Kevin Van Brunt | 2020-04-11 | 1 | -26/+8 |
| | | |||||
* | | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-11 | 2 | -1/+17 |
|\ \ | |/ | |||||
| * | Fixed unit test name | Kevin Van Brunt | 2020-04-11 | 1 | -1/+1 |
| | | |||||
| * | Made some optional arguments with defaults keyword-only. | Kevin Van Brunt | 2020-04-11 | 2 | -1/+17 |
| | | | | | | | | | | Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed. | ||||
* | | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 4 | -14/+427 |
|/ | |||||
* | Add unit tests for Ctrl-C stopping scripts/transcripts | Kevin Van Brunt | 2020-03-26 | 2 | -0/+31 |
| | |||||
* | do_shell() now saves the return code of the command it runs in ↵ | Kevin Van Brunt | 2020-03-20 | 1 | -0/+4 |
| | | | | self.last_result for use in pyscripts | ||||
* | Fixed docstring | Kevin Van Brunt | 2020-03-12 | 1 | -1/+1 |
| | |||||
* | Added unit test for Cmd2ArgparseError | Kevin Van Brunt | 2020-03-12 | 1 | -1/+38 |
| | |||||
* | Added Cmd2ShlexError | Kevin Van Brunt | 2020-03-12 | 1 | -2/+2 |
| | |||||
* | Moved custom cmd2 exceptions to a separate file and removed them from public API | Todd Leonhardt | 2020-02-18 | 3 | -8/+8 |
| | |||||
* | Added apply_style to CompletionError | Kevin Van Brunt | 2020-02-18 | 1 | -39/+0 |
| | | | | Simplified error class structure in argparse_completer.py | ||||
* | Fixed issue where argparse completion errors were being rewrapped as ↵ | Kevin Van Brunt | 2020-02-18 | 1 | -1/+41 |
| | | | | _ActionCompletionError in some cases | ||||
* | Updated unit test | Kevin Van Brunt | 2020-02-17 | 1 | -2/+5 |
| | |||||
* | Made CompletionError exception available to non-argparse tab completion | Kevin Van Brunt | 2020-02-17 | 1 | -2/+2 |
| | |||||
* | Renamed AutoCompleter to ArgparseCompleter for clarity | Kevin Van Brunt | 2020-02-17 | 1 | -12/+12 |
| |