exp init: hide metrics/plots from worktree on --type=live

This commit is contained in:
Saugat Pachhai (सौगात)
2021-11-12 11:21:58 +05:45
committed by Saugat Pachhai
parent 264d78b637
commit 8262dbd37c
+3
View File
@@ -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)