-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
config: add support for --show-origin #5119
Comments
I'll pick this up and submit a PR soon. |
Support the --show-origin option for config, which, similar to git, prefixes each config option with the source file it originated from. Fixes iterative#5119
Support the --show-origin option for config, which, similar to git, prefixes each config option with the source file it originated from. References iterative/dvc#5119 References iterative/dvc#5126
For reference, it's because git config options can come from other sources - stdin, command line, or git blobs. I don't think we would ever have anything besides |
@pmrowla Oh, didn't know that! Makes sense now. Thank you for clarifying! 🙏 |
* cli: config: add support for --show-origin Support the --show-origin option for config, which, similar to git, prefixes each config option with the source file it originated from. Fixes #5119 * Reformat with black. * Simplify logic for local config files. * Add test for --show-config output. * Update tests/func/test_config.py Co-authored-by: Ruslan Kuprieiev <[email protected]>
Reopening to support it for a new correct |
Builds on iterative#5126 and iterative#5184 by showing the full merged config when listing or getting config options. References iterative#5126 References iterative#5184 References iterative/dvc.org#2028 Fixes iterative#5119
Support the --show-origin option for config, which, similar to git, prefixes each config option with the source file it originated from. References iterative/dvc#5119 References iterative/dvc#5126
* cli: config: show merged config with --show-origin Builds on #5126 and #5184 by showing the full merged config when listing or getting config options. References #5126 References #5184 References iterative/dvc.org#2028 Fixes #5119 * Add additional tests. * Add test for merged config. * config: rename methods Co-authored-by: OLOLO ALALA <[email protected]>
* cli: config: add docs for --show-origin Support the --show-origin option for config, which, similar to git, prefixes each config option with the source file it originated from. References iterative/dvc#5119 References iterative/dvc#5126 * Update wording. * Add note about the options near config file locations. * Update content/docs/command-reference/config.md Co-authored-by: Jorge Orpinel <[email protected]>
Same as
git config
:i'm not personally sold on
file:
prefix in path (just because I don't really know why git does that, maybe there is a good reason), but the rest looks pretty good. We now havedvc config --list
, so now we needdvc config --list --show-origin
as the next step.This will be realy handy to have for users to figure out where the configs are and also handy for us, developers, when debugging particular issues.
The text was updated successfully, but these errors were encountered: