Should Document extend Command?
#70
-
|
The root CLI is a command. Note Most CLI frameworks model it this way:
There are exceptions —
— but even among these, it's typical for the root command to extend the branch command ( Both
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
Here's how this change might look: #74 |
Beta Was this translation helpful? Give feedback.
-
|
I agree that the current form is awkward (and I've implemented code against the spec). But the solution I would propose would be:
It think this will allow for important meta information for the spec as a whole document but remove the awkwardness of have two object that basically need to understood identically in processing code. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, that is it:
And all the removed parts would be put in that root As for the overlap between between the data in the CliInfo Object
changes:
semantics:
@boblail does that makes sense? Another thing we could consider is the remove the |
Beta Was this translation helpful? Give feedback.
@boblail @devin-fisher Sorry for the radio silence. It has been some hectic weeks for me, and I wanted to respond when I had some dedicated time.
Yes, I think that this approach sounds reasonable. It's not perfect, but I understand where you all are coming from, and I think this makes sense.
Btw, completely random, I've set up a OpenCli group in the Spectre.Console Discord server: https://discord.com/invite/DxqCxpmA2K