-
Notifications
You must be signed in to change notification settings - Fork 290
Is there a way to implement multiple level verbs? #107
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
Comments
After some messing around I found that the sub verbs did get initialized correctly. So the problem was to get the last level of verb instance. That's easily solve by some recursive checking. Though it would be cool to have a build-in way to get the parsed verb-path in these multiple level situation. |
There was some talk of this in #17, but I don't think nested verbs ever made it into the code. As you mentioned, it's probably quite easy if we switch to a recursive parsing model. |
I see. So are there any plans to support nested verbs in future versions? |
Not as far as I know. I'm sure @gsscoder would accept a pull request for it, but I haven't seen him around in a while. |
This would probably be a breaking change. But I definitely want this. Was anyone working on a PR? |
@Nate-Wilkins I was able to implement this feature in my project without actually modifying this project. You should know that the project linked above was never finished, since later I moved on to node.js for cross-platform purpose and I haven't been working on .Net platform for almost a year. |
@akfish Great thanks! I'll take a gander |
If you create this feature that doesn't break the existing usage, I accept PRs into my fork (which is the only one more or less active at this point, I believe) |
@nemec Could you point me to some of the code that does the verb parsing? I'll be taking a look at this but no promises :( @cosmo0 I'll send the PR to your fork should I also send one here? (This is all assuming I implement the feature...) @akfish Looks like the general gist is to use a sub parser 👍 project looks pretty cool too. |
Well, you can do both, but @gsscoder has vanished from the web, so I'm pretty sure he won't merge it. |
@Nate-Wilkins try this file or this file. @cosmo0 I did manage to get a reply from Giacomo, he said he's busy at work these days and doesn't have time for this project. |
@nemec : great to hear that he's still alive, at least. |
I am trying to make an app with multiple level of verbs, something like:
What I tried is:
In each verb, nested a sub verb:
main:
I was able to get first level of verbs to working (e.g.
app repo
,app account
, as the documents said. But the second level ones (app account list
,app account add
) didn't.So is there a way to do this? Thanks.
The text was updated successfully, but these errors were encountered: