[AIRFLOW-5731] Make output format from list commands configurable#6400
Merged
Conversation
Contributor
|
I'm all in for supporting different output formats with the CLI. Looking at other CLIs such as:
they have arguments named "output" or "format", which I would also like to have. Could you rename the argument to "output"? |
Currently, list commands such as `airflow connections list` and `airflow users list` display prettily formatted tables, but they are not so suitable for parsing and processing. This PR enables users to specify their output format such as `--output=tsv`.
Contributor
Author
|
@BasPH Thanks for the comment! Just updated the PR. |
kaxil
approved these changes
Oct 28, 2019
Member
|
Good to see your contributions again @sekikn :) |
Contributor
Author
|
Thanks @kaxil! ;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure you have checked all steps below.
Jira
Description
Currently, list commands such as
airflow connections listandairflow users listdisplay prettily formatted tables, but they are not so suitable for parsing and processing. With this PR, users can get easier-to-parse output, as follows:Tests
test_cli_list_users_with_args
test_cli_list_roles_with_args
test_cli_list_jobs_with_args (added arguments to the existing test)
test_cli_connections_list_with_args
test_pool_list
test_pool_list_with_args
Commits
Documentation