mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp init: hide metrics/plots from worktree on --type=live
This commit is contained in:
committed by
Saugat Pachhai
parent
264d78b637
commit
8262dbd37c
@@ -215,6 +215,9 @@ def init_interactive(
|
||||
)
|
||||
if not live and "live" not in provided:
|
||||
workspace.pop("live", None)
|
||||
for key in ("plots", "metrics"):
|
||||
if live and key not in provided:
|
||||
workspace.pop(key, None)
|
||||
for value in sorted(workspace.values()):
|
||||
tree.add(f"[green]{value}[/green]")
|
||||
ui.error_write(tree, styled=True)
|
||||
|
||||
Reference in New Issue
Block a user