potiuk commented on code in PR #46664:
URL: https://github.com/apache/airflow/pull/46664#discussion_r1975931185
##########
dev/breeze/src/airflow_breeze/commands/developer_commands.py:
##########
@@ -1116,3 +1115,41 @@ def autogenerate(
cmd = f"/opt/airflow/scripts/in_container/run_generate_migration.sh
'{message}'"
execute_command_in_shell(shell_params, project_name="db", command=cmd)
fix_ownership_using_docker()
+
+
[email protected](name="doctor", help="Troubleshoot breeze")
+@option_answer
[email protected]_context
+def doctor(ctx):
Review Comment:
One more thing - addding `@dry_run` and `@verbose` will allow to print
commands while executing or just showig what would have happened. This should
work out-of-the-box with run_command and friends, but some care should be taken
and `ifs` added to `rmdir` and similar.
--
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]