mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
plots: Add auto_open hint
This commit is contained in:
@@ -96,6 +96,12 @@ class CmdPlots(CmdBase):
|
||||
ui.write(index_path.as_uri())
|
||||
auto_open = self.repo.config["plots"].get("auto_open", False)
|
||||
if self.args.open or auto_open:
|
||||
if not auto_open:
|
||||
ui.write(
|
||||
"To enable auto opening, you can run:\n"
|
||||
"\n"
|
||||
"\tdvc config plots.auto_open true"
|
||||
)
|
||||
return ui.open_browser(index_path)
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user