File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -168,3 +168,12 @@ def wrapper(fn):
168
168
return original_command
169
169
170
170
return wrapper
171
+
172
+ def setup_console (self , soft_wrap : bool , prompt : bool ):
173
+ self .console = Console (
174
+ highlight = False ,
175
+ color_system = "auto" if PREFECT_CLI_COLORS else None ,
176
+ theme = Theme ({"prompt.choices" : "bold blue" }),
177
+ soft_wrap = not soft_wrap ,
178
+ force_interactive = prompt ,
179
+ )
Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ def main(
74
74
exit (1 )
75
75
76
76
# Configure the output console after loading the profile
77
-
78
- app .console .is_interactive = prompt
79
- app .console .soft_wrap = not PREFECT_CLI_WRAP_LINES .value ()
77
+ app .setup_console (soft_wrap = PREFECT_CLI_WRAP_LINES .value (), prompt = prompt )
80
78
81
79
if not PREFECT_TEST_MODE :
82
80
# When testing, this entrypoint can be called multiple times per process which
You can’t perform that action at this time.
0 commit comments