potiuk commented on a change in pull request #20645:
URL: https://github.com/apache/airflow/pull/20645#discussion_r781399928
##########
File path: dev/breeze/src/airflow_breeze/breeze.py
##########
@@ -192,6 +193,32 @@ def build_prod_image(verbose: bool):
raise ClickException("\nPlease implement building the Production image\n")
[email protected](name='config')
[email protected]('--python',
type=click.Choice(ALLOWED_PYTHON_MAJOR_MINOR_VERSION))
[email protected]('--backend', type=click.Choice(ALLOWED_BACKENDS))
[email protected]('--cheatsheet/--no-cheatsheet', default=False)
[email protected]('--asciiart/--no-asciiart', default=False)
+def change_config(python, backend, cheatsheet=False, asciiart=False):
+ from airflow_breeze.cache import delete_cache, touch_cache_file,
write_to_cache_file
+
+ if asciiart:
+ console.print('[blue] ASCIIART enabled')
+ delete_cache('SUPPRESS_ASCIIART')
+ else:
+ touch_cache_file('SUPPRESS_ASCIIART')
+ if cheatsheet:
+ console.print('[blue] Cheatsheet enabled')
+ delete_cache('SUPPRESS_CHEATSHEET')
+ else:
Review comment:
```suggestion
elif cheatsheet is not None:
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]