This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8231add0a0 Fix recording console for new rich-click 1.5 (#24611)
8231add0a0 is described below
commit 8231add0a0d12a1a5f2de13de7e4eb5ac785f839
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jun 23 01:06:23 2022 +0200
Fix recording console for new rich-click 1.5 (#24611)
---
dev/breeze/src/airflow_breeze/utils/recording.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/recording.py
b/dev/breeze/src/airflow_breeze/utils/recording.py
index 2fe9f5b555..41ca767a7f 100644
--- a/dev/breeze/src/airflow_breeze/utils/recording.py
+++ b/dev/breeze/src/airflow_breeze/utils/recording.py
@@ -47,7 +47,9 @@ def enable_recording_of_help_output(path: str, title:
Optional[str], width: Opti
class RecordingConsole(rich.console.Console):
def __init__(self, **kwargs):
- super().__init__(record=True, width=width_int,
force_terminal=True, **kwargs)
+ kwargs["force_terminal"] = True
+ kwargs["width"] = width_int
+ super().__init__(record=True, **kwargs)
global help_console
help_console = self