-
Notifications
You must be signed in to change notification settings - Fork 394
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
cmd ref: review root
ref to be aligned with other commands
#404
Comments
This comment has been minimized.
This comment has been minimized.
Fix #404: Refactor root and improve its style.
Partially done by @vibhor98 . I've updated the description a little considered the changes done. |
root
ref to be aligned with other commands
@jorgeorpinel I’ll work on closing this out. |
@shcheklein the first bullet states "motivation for this command - mostly ease of generating stage files no matter where you use dvc run". Actually, we no longer see Cc @jeremydesroches - does this make sense to you? You may want to review https://dvc.org/doc/user-guide/dvc-files-and-directories and https://dvc.org/doc/command-reference/run 🙂
|
@jorgeorpinel Yes, that does make sense to me. The examples work with |
Great! Please use the motivation I suggested as the guiding idea for finishing updating the command's description, Jeremy.
I agree, but let's keep the current PR small for now, and just update the existing content or remove examples if they're no longer relevant? Leaving it for another PR to add new ones (so please don't use the special word "Fixes" in the PR description for now). Thanks ALTHOUGH by programmatically we basically mean shell scripts here I think (since So maybe let's wait to see what @shcheklein says. |
OK, I'll wait for comments before updating motivation and examples. I can see how it might be used in a script to "template" an experiment or stage to be used in different projects, but that type of example might be too detailed for a command reference. Removed "Fixes" from the PR description. |
This comment has been minimized.
This comment has been minimized.
Sorry I let you start working on this without thinking it through. It's just a pretty old issue... But anyway! OK, I had a discussion with myself (and found a previous conversations in #408) and yes, it's main use cases seem to be 1) as a way to get the project root from shell scripts that generate dvc.yaml files either with the So the current Examples are OK topic-wise (just need to be "actionable and meaningful" as described above), but another one with an actual shell script (for Linux) would be nice (not required for your current PR @jeremydesroches).
BTW this isn't possible, dvc.yaml doesn't accept any sort of variables, it's just YAML. |
No problem at all. I was hoping to work on an issue that required a bit of investigation and discussion. I learned a lot, so mission accomplished! So based on your discussion (haha) it sounds like the the current PR won't need much more adjustment. I'll find a newer issue to work on next. (Please let me know if any suggestions or preferences.)
I see, so you couldn't have a dvc.yaml file with a |
Yep, just to address the couple reviews already open in #1637 should wrap it up.
Correct. Once generated, they would be hard coded in dvc.yaml (or in a .dvc file for that matter, since you could do something like |
OK, #1637 almost closed this (thanks @jeremydesroches) but we still need that shell script example. I updated the description of this issue (who knew it would be so hard to close...) |
root
ref to be aligned with other commandsroot
ref to be aligned with other commands
This is mostly done. Moved the remaining part to #2076. Closing! |
See https://dvc.org/doc/commands-reference/root.
i.
The layout of this command reference is outdated.
It should be the same as for the cache for example.
ii.
Description should include a better motivation for this command - mostly ease of generating stage files no matter where you run the
dvc run
.Examples should be actionable and meaningful. It's should be easy to run commands to see the results.
iii.
A new example about shell scripts to generate dvc.yaml files is needed to complete this update. See Update dvc root command reference motivation and examples #1637 (comment)Now part of doc: changerun
mentions todvc.yaml
orstage add
+repro
#2076The text was updated successfully, but these errors were encountered: