-
Notifications
You must be signed in to change notification settings - Fork 343
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
Command naming consistency #762
Comments
|
Is |
I wasn't following noun convention. Now that I think of it, I was assuming verb for simple commands and noun for complex ones... So they're all (possibly abbreviated) verbs apart from |
I don't think verbs are appropriate for the top–level command names:
|
Im not a super fan of publish but attachment or image is... really bad 😁 |
Does not need to reflect a verb necessarily but the final outcome as cml comment does not need to be the comment as a verb but the comment as an entity as @casperdcl also manifest |
then we have |
strictly it's about being an imperative/action:
I suppose we could try |
cml runner comes from cml_runner that means cml's runner to my mind. Seems that the cml command has brought the pandora's box about naming. Ideally speaking cml should probably be:
however I fully understand that cml is an entity that can generate a resource cml |
|
If we're supporting actions other than If there isn't any command supporting verbs other than |
|
Hmm. Isn't |
🐻👨🏼🍳🤺 No strong opinions on this but things get a bit messy when using |
Anyway, my biggest concern is extensibility. For the current command set, it doesn't look that bad. |
Request for
Philosophical question: are checks and comments two different kinds of report? Footnotes
|
|
Surely |
bumping priority on this (blocking everything from #1026 (comment) to iterative/cml.dev#250). Updated the OP in light of last |
I see 3 points of contention, can vote with emojis:
|
|
And what happens if there isn't an existing comment to edit? |
|
Follow-up #1026 (comment) probably required. |
Same as what's already implemented right now: fallback to |
Then, is a separate |
Yes, exactly. Strong preference for
So it must be |
Clarification: I never meant to have a verb named |
Can |
Not to me. Seems same level as "create" (vis. the CRUD acronym) |
Unify naming without breaking backwards compatibility.
cml <noun> <verb> [options]
)cml ci
cml ci [setup]
cml pr
cml pr [create] [{--merge,--rebase,--squash}]
cml pr {create <file...>,close [<number>]}
cml pr {merge} [{--no-ff(?),--ff(?),--rebase,--squash}]
cml publish [--native] [--type=file]
cml runner
cml runner [launch]
cml send-comment
cml {comment,report} {create,update}
cml {comment,report} watch [--update]
cml send-github-check
cml check {create,update}
cml tensorboard-dev
cml tensorboard-dev [publish]
cml rerun-workflow
cml workflow {rerun,stop}
See also
Related
cml pr
: Add--merge
option. #823 (comment)cml publish
withcml send-comment
#1026 (comment) — unify trailing periods on--help
messagesThe text was updated successfully, but these errors were encountered: