Update dvc root command reference motivation and examples#1637
Conversation
That's checked automatically by Github and Restyled (shown in the bottom PR summary). You can see all the checks in that section of the PR (inside "test", specifically |
|
Thanks Jorge. Made changes based on your feedback and left comments open. |
jorgeorpinel
left a comment
There was a problem hiding this comment.
Few more questions on the description. Thanks
|
@jeremydesroches please check #404 (comment) before continuing here 🙏 |
jorgeorpinel
left a comment
There was a problem hiding this comment.
I noticed you added Examples @jeremydesroches. Thanks, I'll review them. But please first make sure the old ones (first 2) are "actionable and meaningful. It's should be easy to run commands to see the results", per #404
I reviewed the existing two examples before adding the new ones. The first example is still meaningful and actionable because it's important to show that I adjusted the second example to make it more a meaningful and useful (while keeping it simple). The updated version uses |
This comment has been minimized.
This comment has been minimized.
| ## Example: Build reusable paths | ||
|
|
||
| Build reusable paths to dependencies, scripts, or <abbr>data artifacts</abbr> | ||
| from separate stages and subdirectories. | ||
|
|
||
| ```dvc | ||
| $ cd more_stages/ | ||
| $ dvc run -n process_data \ | ||
| -d data.in \ | ||
| -d $(dvc root)/process_data.py \ |
There was a problem hiding this comment.
OK... I think what we need is a shell script that generates a dvc.yaml file instead of another dvc run example. Not required for this PR, so if you're not so familiar with Linux shell just leave it out for now please. Thanks
There was a problem hiding this comment.
I removed this for now.
I looked into some related issues (#615) and examples of scripts.
These make sense within the scripting use case but instead of adding a (complicated) example that builds out a full set of stages, it would help to have the team vet a smaller example that fits the recommended usage.
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
jorgeorpinel
left a comment
There was a problem hiding this comment.
OK this is ready I think. I'll just commit my couple pending suggestions and merge this.
Updates motivation and examples. See issue #404.