commands
keys are ordered; might an object be more meaningful?
#5
Unanswered
jpluscplusm
asked this question in
Q&A
Replies: 2 comments
-
In the demo we in the readme we see:
Here demo is a command with [hello, world] as sub commands. The ordering there matters you want to put things together or order them logically or so. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's purely cosmetic/organisational though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Both the Exec and Parent
commands
keys are an array. This implies there's some meaning to the ordering, which I don't believe is used. I.e. there's no "this command runs X, then Y, then Z" at present.I can sort of see the forward-looking logic in having Parent's
commands
being ordered, as there might be a flag introduced for "this parent command is runnable and it invokes its child commands, in order, and isn't just a container for individually addressable sub-commands". But it feels like the combinatorial complexity of "this parent is both runnable, and this+this+this child is runnable, but this specific child isn't individually runnable .." might suggest that an adding a dedicated, ordered, "compound" command, later, would be the better DevX.Might it be more meaningful to recast
commands
as an object, given that order's not currently A Thing?Beta Was this translation helpful? Give feedback.
All reactions