Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rst lexer to format airflow upgrade check output #11259

Conversation

turbaszek
Copy link
Member

Instead of displaying plain text we can use pygments formatter and lexer
to improve readability and UX of airflow upgrade_check command.

Before
Screenshot 2020-10-03 at 15 50 33

After
Screenshot 2020-10-03 at 16 01 51


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@turbaszek turbaszek added the area:upgrade Facilitating migration to a newer version of Airflow label Oct 3, 2020
@mik-laj
Copy link
Member

mik-laj commented Oct 3, 2020

What do you think to use rich? It looks a little more user-friendly.
https://github.com/willmcgugan/rich#markdown

@kaxil
Copy link
Member

kaxil commented Oct 3, 2020

Rich is Py 3.6 only though

@turbaszek
Copy link
Member Author

What do you think to use rich? It looks a little more user-friendly.
https://github.com/willmcgugan/rich#markdown

I think the rich is something that we should consider in future (for multiple commands). For now, I would prefer to stick to what we have and keep it simple.

@potiuk potiuk force-pushed the v1-10-test branch 2 times, most recently from bd4214b to 195f00d Compare October 3, 2020 22:42
@turbaszek turbaszek force-pushed the improve-ux-airflow-upgrade-check branch from 4a46aa6 to 19621e6 Compare October 4, 2020 11:47
Instead of displaying plain text we can use pygments formatter and lexer
to improve readability and UX of airflow upgrade_check command.
@turbaszek turbaszek force-pushed the improve-ux-airflow-upgrade-check branch from 19621e6 to 9a70012 Compare October 4, 2020 12:12
@turbaszek turbaszek merged commit bcfb29b into apache:v1-10-test Oct 7, 2020
@turbaszek turbaszek deleted the improve-ux-airflow-upgrade-check branch October 7, 2020 08:48
turbaszek added a commit to PolideaInternal/airflow that referenced this pull request Oct 21, 2020
Instead of displaying plain text we can use pygments formatter and lexer
to improve readability and UX of airflow upgrade_check command.
turbaszek added a commit to PolideaInternal/airflow that referenced this pull request Oct 23, 2020
Instead of displaying plain text we can use pygments formatter and lexer
to improve readability and UX of airflow upgrade_check command.

(cherry picked from commit 7d83661)
@potiuk potiuk added this to the Airflow 1.10.13 milestone Nov 14, 2020
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
Instead of displaying plain text we can use pygments formatter and lexer
to improve readability and UX of airflow upgrade_check command.

(cherry picked from commit 7d83661)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:upgrade Facilitating migration to a newer version of Airflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants