WIP : Manage command with multiple arguments#133
Open
camlafit wants to merge 2 commits intoadhocore:mainfrom
Open
WIP : Manage command with multiple arguments#133camlafit wants to merge 2 commits intoadhocore:mainfrom
camlafit wants to merge 2 commits intoadhocore:mainfrom
Conversation
3317627 to
7d2417b
Compare
* Find command when its name use spacing as separator Purpose is to support approach as namespace/object/action
7d2417b to
5288c87
Compare
* When a command is added , add by cascad all subcommand managed by main command * Could be useful to load only 'Oject' command and retrieve all its related 'Verb' command
Owner
|
how deep can the subcommands go? i would prefer only 2 levels: eg. where cmd is 1st, subcmd is 2nd level how is 2nd level matched to the pool of commands? i think if 1st level cmd is matched then we can try and see if 2nd level matched to a command |
Author
|
Hello
Great question :) And I don't know ... In this PR :
In my mind
Two variables are used to manage subcommand values. I wish to remove these variables and manage as a recursive concatenation with defined separator. By default colon as actually in base code or space as in this proposition. |
Owner
|
ya upto 3 seems good: |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Propose a way to use multiple arguments to call command
Related to #132