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

Add json output for collections subcommand #1420

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

cidrblock
Copy link
Collaborator

@cidrblock cidrblock commented Jan 23, 2023

This adds a new CLI parameter --fmt, --format that allows either yaml or json.

This PR only includes support for the collections subcommand, other subcommands will get support for it as time permits.

Closes #1417
Related #1416
Related #1208

The json output can be used during testing to avoid some of the complexities of tmux.

Fixtures and tests updated as needed.

@cidrblock cidrblock added the enhancement New feature or request label Jan 23, 2023
@cidrblock cidrblock requested review from a team, ssbarnea, audgirka and priyamsahoo January 23, 2023 16:09
@cidrblock cidrblock merged commit e09a6c2 into ansible:main Jan 23, 2023
@cidrblock cidrblock mentioned this pull request Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add json output for stdout
2 participants