Skip to content

Commit f62ac35

Browse files
#1686 set console width for output to pipe and files
1 parent eede587 commit f62ac35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SoftLayer/CLI/environment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def __init__(self):
4545

4646
def out(self, output):
4747
"""Outputs a string to the console (stdout)."""
48+
49+
# If we output to a | or file, need to set default width so all output is printed.
50+
if not self.console.is_terminal:
51+
self.console.width = 1000000
4852
if self.format == 'json':
4953
try:
5054
self.console.print_json(output)

0 commit comments

Comments
 (0)