migrations
migrations copied to clipboard
CLI executable
Does the library have a ready-to-use executable somewhere? To just download&run like
# download and install the executable
go get github.com/go-pg/migrations/cmd/pg-migrations
# run migrations as an app
pg-migrations init
pg-migrations up 2
No, because this lib needs database config and requiring everyone to use same CLI, config format and single database does not sound reasonable. Just copy the bits you need from https://github.com/go-pg/migrations/blob/master/example/main.go and use CLI/config you prefer.
So why don't implement a simple CLI wrapper to allow new users just install it and use like golang-migrate does?
I don't mean package building or installing with some package manager like brew or apt, but just a standalone CLI app, that will allow to run it without any code manipulation.
I have to agree, having a binary would be awesome.