-
Notifications
You must be signed in to change notification settings - Fork 82
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 script to generate CLI structure #629
Conversation
Signed-off-by: Alexis Rico <[email protected]>
Signed-off-by: Alexis Rico <[email protected]>
Signed-off-by: Alexis Rico <[email protected]>
Signed-off-by: Alexis Rico <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great; thanks for doing it 🙏
To merge I think we also need:
- A
Makefile
rule to generatecli-definition.json
- Invoke the
Makefile
rule from CI and fail the build ifcli-definition.json
is out of sync.
Signed-off-by: Alexis Rico <[email protected]>
Signed-off-by: Alexis Rico <[email protected]>
Short: "Convert SQL statements to pgroll operations", | ||
Args: cobra.ExactArgs(1), | ||
Hidden: true, | ||
Use: "sql <sql statement>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use: "sql <sql statement>", | |
Use: "sql <statement>", |
@andrew-farries Added it to the |
That works for me. |
Add script to generate the structure of the CLI for calling it programmatically and validating params. It will also be useful to generate documentation for pgroll.com.