ad-m opened a new pull request, #63561:
URL: https://github.com/apache/airflow/pull/63561

   ## Description
   
   This PR refactors console output calls throughout the Breeze codebase by 
replacing direct `get_console().print()` calls with a new `console_print()` 
helper function. This improves code consistency and maintainability by 
centralizing console output logic.
   
   ### Changes Made
   
   - Added `console_print()` function to `airflow_breeze/utils/console.py` as a 
convenience wrapper around `get_console().print()`
   - Updated imports across 30+ files to include `console_print` from the 
console utilities module
   - Replaced all instances of `get_console().print(...)` with 
`console_print(...)` throughout the codebase, including:
     - Release management commands
     - PR commands and triage actions
     - CI commands and ownership fixes
     - Docker command utilities
     - Kubernetes commands
     - Setup and configuration commands
     - Provider documentation and distribution utilities
     - Image building commands (CI and production)
     - Testing and test utilities
     - Various utility modules (packages, GitHub, parallel execution, etc.)
   
   ### Benefits
   
   - **Consistency**: Single, standardized way to print console messages across 
the entire codebase
   - **Maintainability**: Future changes to console output behavior can be made 
in one place
   - **Readability**: Shorter, cleaner code compared to `get_console().print()`
   - **Flexibility**: The helper function can be extended with additional 
functionality if needed in the future
   
   ### Testing
   
   No testing needed - this is a straightforward refactoring that maintains 
identical behavior. All existing functionality is preserved, and the change is 
purely syntactic.
   
   https://claude.ai/code/session_01XGwwP3viANwtiSBU4Kppdh
   
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change below checkbox to `[X]` followed by the name of the tool, uncomment 
the "Generated-by".
   -->
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code / Opus 4.6
   
   ---
   
   * Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information. Note: commit author/co-author name and email in commits 
become permanently public when merged.
   * For fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   * When adding dependency, check compliance with the [ASF 3rd Party License 
Policy](https://www.apache.org/legal/resolved.html#category-x).
   * For significant user-facing changes create newsfragment: 
`{pr_number}.significant.rst`, in 
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
 You can add this file in a follow-up commit after the PR is created so you 
know the PR number.


-- 
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]

Reply via email to