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

improve init command to create v2/v1 yaml file #2335

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

dangquangdon
Copy link
Contributor

sqlc init now would generate v2 format yaml file by default, user also can use --v1 to generate v1 format if needed.

Create an empty sqlc.yaml settings file

Usage:
  sqlc init [flags]

Flags:
  -h, --help   help for init
      --v1     generate v1 config yaml file
      --v2     generate v2 config yaml file (default true)

`sqlc init` now would generate v2 format yaml file by default,
user also can use `--v1` to generate v1 format if needed.
@kyleconroy kyleconroy merged commit 7ef0daf into sqlc-dev:main Jun 20, 2023
@kyleconroy
Copy link
Collaborator

Thanks! This has been on the todo list for a while.

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