-
Notifications
You must be signed in to change notification settings - Fork 127
Modular commands attempt 3 #943 #961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1314c97
Initial implementation of modular command loading
anselor 91a7eec
Some minor cleanup of how imports work. Fixed issue with help documen…
anselor 050feee
Added new constructor parameter to flag whether commands should autol…
anselor 97f2135
add ability to remove commands and commandsets
anselor 2964e14
Fixes issue with locating help_ annd complete_ functions when autoloa…
anselor 2a5b7d8
Fixes to sphinx generation
anselor bd7d247
Added explicit tests for dir and setattr. Minor type hinting changes
anselor 0a564b7
Added more command validation. Moved some common behavior into privat…
anselor 08afb76
Appears to be a type hinting olution that works for flake, sphinx, an…
anselor 706682a
Sort imports using isort
tleonhardt 86c4949
cleanup
anselor fdcd133
Adjusted decorators to accept variable positional parameters
anselor 546fd97
Added an additional check for isinstance(method, Callable) since ther…
anselor 91e5f9a
added additional documentation for new decorator behavior
anselor 28517e5
Moved commandset tests into an isolated test
anselor 475d53e
Removed support for functions outside of CommandSets
anselor 2abe20a
Updates the example to remove usage of the now remove ability to
anselor ef8eef4
updated imports
anselor cc4485a
Adds support for injectable subcommands as part of CommandSet
anselor 540bc17
Adds unit tests for sub-commands and additional commandset edge cases
anselor a4655f0
Suggested PR Fixes.
anselor fa85034
Removed sub-class and instead patch argparse._SubParsersAction
anselor 1529800
Fixed typo in documentation
kmvanbrunt 0e6e239
Fixed issue where we attempted to remove CommandSet from a list it wa…
kmvanbrunt 4e673fc
Fixes to how command callables are filtered from CommandSet
anselor c03a144
Added handling for disabled commands to CommandSet functions
kmvanbrunt 31bbe39
Updated documentation
kmvanbrunt 229a353
Updated documentation
kmvanbrunt c58fec8
Fix a couple doc8 warnings
tleonhardt 7c97f68
Fix it so py.test by itself doesn't crash
tleonhardt 333096c
Updated Pipfile to do an editable/dev install of cmd2_ext_test so tha…
tleonhardt b1d7471
Ignore plugins directory when running doc8 by itself outside of invoke
tleonhardt 51a3f76
Now maintains a command->CommandSet mapping and passes the CommandSet
anselor c0ad7ba
Updated changelog
anselor b932ad4
Minor formatting fixes. Injecting a function into namespace objects b…
anselor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.