-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for `--config` to all three commands. For `ls` and `get`, it is a purely runtime option that will merge the config you provide with target repo's configs (similar to how .dvc/config.local works). E.g. ``` $ cat myconfig [remote "myremote"] access_key_id = 12345 secret_access_key = 98765 $ dvc get https://github.com/efiop/mydataregistry recent-grads.csv --config myconfig ``` In case of `dvc import`, the semantics are the same, but the value is also recorded in the resulting dvcfile. E.g. ``` $ dvc import https://github.com/efiop/mydataregistry recent-grads.csv --config myconfig ... $ cat recent-grads.csv.dvc md5: 85c86eeb3afa6d1f7d11beedc644d28e frozen: true deps: - path: recent-grads.csv repo: url: https://github.com/efiop/mydataregistry config: myconfig rev_lock: af22e06bbfe34d62a140437abf32f48b535944a7 outs: - md5: f447e23a170a9f25a7799f069a1ba934 size: 26872 hash: md5 path: recent-grads.csv ``` This is the most general and powerful mechanism that we can give, that works for everything from reconfiguring your default remote to completely changing your remote layout and beyond (will be handy in the future). Fixes #2466
- Loading branch information
Showing
8 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters