rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.16k stars 269 forks source link

add HelpWriter and ErrorWriter (#2) #267

Closed sergiy-petrov closed 1 month ago

sergiy-petrov commented 1 month ago

Currently sql-migrate --version outputs to stderr instead of stdout

I've added HelpWriter and ErrorWriter to cli.CLI

image

https://github.com/mitchellh/cli/blob/784fcd13e857c49c0e5738a19707762f372a3eb3/cli.go#L119

rubenv commented 1 month ago

Not sure how much of a backwards compatibility break this is. Probably fine, the output of the CLI is not something you should really depend on (use the library instead!).

Thanks!