Skip to content

Default pgroll pull to write in YAML format and add a --json flag #810

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

Merged
merged 3 commits into from
May 1, 2025

Conversation

andrew-farries
Copy link
Collaborator

Make pgroll pull default to pulling migrations in YAML format, rather than JSON.

Add a --json flag to the pull command to allow users to output migrations in JSON format instead of YAML.

We want to default to YAML as the output format, but provide an option for users to choose JSON if they prefer it. This is useful for users who may want to integrate the output with other tools or systems that work better with JSON.

@github-actions github-actions bot temporarily deployed to Docs Preview April 30, 2025 08:57 Inactive
@andrew-farries andrew-farries marked this pull request as ready for review April 30, 2025 09:04
@andrew-farries andrew-farries requested a review from kvch April 30, 2025 09:04
@github-actions github-actions bot temporarily deployed to Docs Preview May 1, 2025 07:41 Inactive
Add a `--json` flag to the `pull` command to allow users to output
migrations in JSON format instead of YAML.

We want to default to YAML as the output format, but provide an option
for users to choose JSON if they prefer it. This is useful for users who
may want to integrate the output with other tools or systems that work
better with JSON.
By running `make generate`.
@github-actions github-actions bot temporarily deployed to Docs Preview May 1, 2025 07:44 Inactive
@andrew-farries andrew-farries merged commit e028d24 into main May 1, 2025
30 checks passed
@andrew-farries andrew-farries deleted the pull-as-yaml branch May 1, 2025 07:53
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.

2 participants