mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
cmd: stage list: use ui.table (#5847)
This commit is contained in:
@@ -84,7 +84,7 @@ class CmdStageList(CmdBase):
|
||||
return dict.fromkeys(collected).keys()
|
||||
|
||||
def run(self):
|
||||
from dvc.utils.diff import table
|
||||
from dvc.ui import ui
|
||||
|
||||
def log_error(relpath: str, exc: Exception):
|
||||
if self.args.fail:
|
||||
@@ -98,8 +98,7 @@ class CmdStageList(CmdBase):
|
||||
names_only = self.args.names_only
|
||||
|
||||
data = prepare_stages_data(stages, description=not names_only)
|
||||
if data:
|
||||
print(table(header=(), rows=data.items()))
|
||||
ui.table(data.items())
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user