-
Notifications
You must be signed in to change notification settings - Fork 0
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
Suggestions for arguments and beyond #1
Conversation
I agree with most of the points, for the long term they make sense to me. + this approach doesn't conflict with anykind of interface (UI,CLI,ChatBot). The only concern from me is the transition/rollout process. AFAICS We can go ahead and implement the named arguments in 2 ways now
With 1st for me what's valuable is that it still gives nicer experience but doesn't require you to learn whole new way of how to run it now. While later with UI - some people will have alternative options. To summarize - i'd go with named arguments, how you suggest, but through 1st, gradual steps, right after the UI as an alternative is provided @mutantcornholio WDYT ⤴? Re. "WDYT" questions:
These 1-9 points/details we can still discuss, im open to. Lets figure out first with roll-out plan - 1.a-b-c or 2.a-b |
Wait, so you're suggesting to do the refactor twice, in order to postpone breaking changes, based on the premise that people who're using GitHub comments now will switch to UI, so less people would be affected by the breaking changes, while switching to UI is far more of a breaking change? You know well my standpoint on this by now: do a switch once. Teach and support users during the transition. I'd wager that it would be much more straightforward process and less work overall. |
I'm not sure that it would be a right call, but I can imagine arguments created specifically to represent a preset. |
superseded with #2 |
Questions that arose
id
field in commands seems redundant: it brings ambiguity between itself and the file name. I'd say let's use file name only.label
, leave only id (force same CLI-friendly names for both CLI and UI) + description?type_one_of
with a single argument inside? If we still want to show it, should we automatically mark those as default, as it is the only possible option, and we shouldn't force people to type it all the time?bench
,runtime
argument is atype_many_of
? Sure about that? How would it work?--type
would work, but also-t
.ARGS
, but alsoREPOSITORY
andPRESET
*.cmd.json
(it has to be the same, right?), so why would we invent anything for*.sh
? Hope that it's not just forsample
command. If so, let's add a simple script there, but removecommandStart
from all other scripts.How does calling the commands look with suggested changes?
bot
bot bench polkadot --type=runtime
bot bench cumulus-starters -t xcm
bot bench cumulus-assets -t xcm -r statemine,westmint,test-utils
bot sample -i "Hello there!"