mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Machine: use table for list outputs(#6892)
fix: #6892 Current output of machine list is quite urgly, it is originaly used to show configurations. In this PR, we use a new table format for it.
This commit is contained in:
@@ -54,3 +54,18 @@ def clean_staging():
|
||||
)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
@contextmanager
|
||||
def console_width(console, width):
|
||||
console_options = console.options
|
||||
original = console_options.max_width
|
||||
con_width = console._width
|
||||
|
||||
try:
|
||||
console_options.max_width = width
|
||||
console._width = width
|
||||
yield
|
||||
finally:
|
||||
console_options.max_width = original
|
||||
console._width = con_width
|
||||
|
||||
Reference in New Issue
Block a user