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

Json output #78

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Json output #78

wants to merge 7 commits into from

Conversation

aslakhellesoy
Copy link

@aslakhellesoy aslakhellesoy commented Sep 22, 2021

This adds a --json option to the show and fmt commands. This opens up for advanced querying by piping to jq.

Examples:

# Get the latest released version
./changelog fmt --json | jq ".versions[1].name" --raw-output
0.7.0

# Get the date of a release
./changelog show 0.6.0 --json | jq ".date" --raw-output
2020-05-28

/cc @mattwynne

P.S. The build is failing, but that seems unrelated to this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant