-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow a Delegator to nest another Delegator
Removes the restriction on how deeply one can compose their CLI program. Previously, a Delegator could not have other Delegators as a subcommand. Attempting to select one of those resulted in an error: one does not simply create too many layers of delegators These changes are an attempt to allow the developer to create an arbitrary number of levels of delegators. Added some tests for one extra level than before. This will probably cover most use cases. Haven't tried creating more levels because it's not that immediately practical, but will cross that bridge if it arrives.
- Loading branch information
1 parent
572c8e0
commit ee1c366
Showing
4 changed files
with
146 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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 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 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 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