summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into move_attachmove_attachKevin Van Brunt2020-09-281-0/+66
|\
| * Merge pull request #1001 from python-cmd2/codeqlTodd Leonhardt2020-09-281-0/+66
| |\ | | | | | | Onboard to GitHub CodeQL security scanning
| | * Onboard to GitHub CodeQL security scanningcodeqlTodd Leonhardt2020-09-281-0/+66
| |/ | | | | Add codeql-analysis.yml file to onboard to GitHub's new CodeQL static analysis tool
* | Only setting subcommand handler on attached_parser and not its parent parserKevin Van Brunt2020-09-281-4/+6
|/
* Merge pull request #999 from python-cmd2/silence1.3.10Kevin Van Brunt2020-09-173-15/+73
|\ | | | | Added way to silence alias/macro creation
| * Small refactorsilenceKevin Van Brunt2020-09-171-6/+6
| |
| * Merge branch 'master' into silenceKevin Van Brunt2020-09-1711-20/+263
| |\ | |/ |/|
* | Minor type hinting fixes.Eric Lin2020-09-112-7/+21
| |
* | Changes default category to be heritable by default - meaning that ↵Eric Lin2020-09-118-5/+228
| | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability.
* | Fixed classifier spacingplugin-ext-test-0.2.0Eric Lin2020-09-111-2/+2
| |
* | Updated URL and documentation in preparation for cmd2-ext-test 0.2.0 releaseEric Lin2020-09-112-7/+13
| |
| * Added --silent flag to alias/macro create.Kevin Van Brunt2020-09-103-12/+70
|/ | | | Added --with_silent flag to alias/macro list.
* Updated documentation about set commandKevin Van Brunt2020-09-091-9/+10
|
* Merge pull request #994 from python-cmd2/format_flagsKevin Van Brunt2020-09-093-27/+65
|\ | | | | Group flags in argparse tab completion
| * argparse tab completion now groups flag names which run the same action. ↵Kevin Van Brunt2020-09-093-27/+65
|/ | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text.
* Added type hintKevin Van Brunt2020-09-051-2/+1
|
* Merge pull request #993 from python-cmd2/completion_hintsKevin Van Brunt2020-09-058-55/+131
|\ | | | | Completion hint enhancements
| * Added always_show_hint settingKevin Van Brunt2020-09-058-55/+131
|/ | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion
* Fixed type hints in example code1.3.9Kevin Van Brunt2020-09-033-3/+3
|
* Merge pull request #990 from python-cmd2/on_registeredKevin Van Brunt2020-09-039-31/+111
|\ | | | | Added callbacks to CommandSet
| * Documented CommandSet event handlersKevin Van Brunt2020-09-031-1/+29
| |
| * Added CommandSet.on_unregistered()Kevin Van Brunt2020-09-034-14/+33
| |
| * Updated docsKevin Van Brunt2020-09-015-16/+15
| |
| * Added unit tests for CommandSet callbacksKevin Van Brunt2020-09-012-5/+26
| |
| * Added on_registered() callback to CommandSetKevin Van Brunt2020-09-013-2/+15
|/
* Merge pull request #988 from python-cmd2/add_help1.3.8Kevin Van Brunt2020-08-286-31/+68
|\ | | | | Removed need to set add_help to False for @as_subcommand_to decorator
| * Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-276-31/+68
|/ | | | | | 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-273-4/+26
| | | | object to search for the original function arguments. Switched to search for the original statement value instead
* Fixed typo in change logKevin Van Brunt2020-08-271-1/+2
|
* Updated change log for release1.3.6Kevin Van Brunt2020-08-271-1/+1
|
* Merge pull request #985 from python-cmd2/dynamic_valueKevin Van Brunt2020-08-2714-41/+86
|\ | | | | Added Cmd2AttributeWrapper class
| * The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-2614-41/+86
|/ | | | | | | 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.
* Updated change log and docs for release1.3.5Kevin Van Brunt2020-08-252-1/+16
|
* Merge pull request #984 from python-cmd2/recursion_errorKevin Van Brunt2020-08-258-17/+48
|\ | | | | Fixed RecursionError when printing an argparse.Namespace
| * Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-258-17/+48
|/ | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
* Fixed typoKevin Van Brunt2020-08-211-1/+1
|
* Updated change log for release1.3.4Kevin Van Brunt2020-08-201-1/+5
|
* Merge pull request #980 from python-cmd2/move_module_loadingKevin Van Brunt2020-08-2014-52/+336
|\ | | | | Fixed AttributeError when loading CommandSet
| * Added tests for invalid subcommandsEric Lin2020-08-202-0/+90
| |
| * Minor formatting changes. Fixed some inaccurate commentsEric Lin2020-08-201-19/+72
| |
| * Updated documentation with more explicit discussions on testingEric Lin2020-08-209-9/+95
| | | | | | | | Added unit test to verify command name validation updates.
| * 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-193-16/+62
|/ | | | loaded during cmd2.Cmd.__init__().
* Updated changelog with 1.3.3 release date1.3.3Kevin Van Brunt2020-08-131-1/+1
|
* Merge pull request #975 from python-cmd2/help_format_fixKevin Van Brunt2020-08-135-38/+133
|\ | | | | Fix tuple metavar crash in Cmd2HelpFormatter and ArgparseCompleter
| * Fixed tab completion bug when using CompletionItem on an argument whose ↵Kevin Van Brunt2020-08-133-20/+98
| | | | | | | | metavar is a tuple
| * Fixed changelog commentTodd Leonhardt2020-08-121-1/+1
| |
| * Add unit test and update CHANGELOGTodd Leonhardt2020-08-122-0/+8
| |
| * 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-126-49/+96
| | | | resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app