From e48055077de8e624fcc8d686d6bed88016ef7373 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 20 Oct 2020 11:31:57 +0300 Subject: [PATCH] plots: don't allow in non-dvc repo (#4745) --- dvc/command/plots.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dvc/command/plots.py b/dvc/command/plots.py index ed4ade772..04e5b2918 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -31,8 +31,6 @@ DIV_HTML = """
class CmdPlots(CmdBase): - UNINITIALIZED = True - def _func(self, *args, **kwargs): raise NotImplementedError @@ -82,11 +80,15 @@ class CmdPlots(CmdBase): class CmdPlotsShow(CmdPlots): + UNINITIALIZED = True + def _func(self, *args, **kwargs): return self.repo.plots.show(*args, **kwargs) class CmdPlotsDiff(CmdPlots): + UNINITIALIZED = True + def _func(self, *args, **kwargs): return self.repo.plots.diff( *args,