Conversation
| Long: "Formats SQL statements from stdin to line length n.", | ||
| RunE: runSQLFmt, | ||
| Use: "sqlfmt", | ||
| Version: "1.5.1", |
There was a problem hiding this comment.
Thank you for your contribution @JMavs !!!
Can we define the version in a const or get the value present in the Makefile somehow? Its 100% likely that I will forget to update the value in two places in the next release and thus, give incorrect data to the user.
|
Another question, what happens if we mix the flag We should act as the |
Example: Works. Exits and prints just the help. |
Now you can execute
sqlfmt -vto know the current version.