mik-laj commented on a change in pull request #14528:
URL: https://github.com/apache/airflow/pull/14528#discussion_r584291733
##########
File path: airflow/cli/simple_table.py
##########
@@ -30,6 +31,11 @@
class AirflowConsole(Console):
"""Airflow rich console"""
+ def __init__(self, *args, **kwargs):
+ super(AirflowConsole, self).__init__(*args, **kwargs)
+ # Set the width to constant to pipe whole output from console
+ self._width = 200 if not sys.stdout.isatty() else self._width
Review comment:
Can you use `airflow.utils.platform.is_tty` here? isatty doesn't always
exist.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]