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

CLI executable #70

Open
ilyakaznacheev opened this issue Jun 25, 2019 · 3 comments
Open

CLI executable #70

ilyakaznacheev opened this issue Jun 25, 2019 · 3 comments

Comments

@ilyakaznacheev
Copy link
Contributor

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
@vmihailenco
Copy link
Member

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.

@ilyakaznacheev
Copy link
Contributor Author

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.

@movergan
Copy link

I have to agree, having a binary would be awesome.

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

No branches or pull requests

3 participants