mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
metadata: support custom metadata in .dvc files
This adds support for custom metadata in outputs under `meta` key. Also adds `--meta` flag to `add`/`import`/`import-url` that supports `key=value` values.
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
df60df5242
commit
c73764156e
@@ -51,6 +51,9 @@ def test_commit_preserve_fields(tmp_dir, dvc):
|
||||
labels:
|
||||
- label1
|
||||
- label2
|
||||
meta:
|
||||
key1: value1
|
||||
key2: value2
|
||||
remote: testremote
|
||||
meta: some metadata
|
||||
"""
|
||||
@@ -69,6 +72,9 @@ def test_commit_preserve_fields(tmp_dir, dvc):
|
||||
labels:
|
||||
- label1
|
||||
- label2
|
||||
meta:
|
||||
key1: value1
|
||||
key2: value2
|
||||
remote: testremote
|
||||
md5: acbd18db4cc2f85cedef654fccc4a4d8
|
||||
size: 3
|
||||
|
||||
Reference in New Issue
Block a user