From 47e4c98a97cf981bba623f02354b50413089b080 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (V-Teq)" Date: Fri, 26 Feb 2016 14:50:27 -0500 Subject: [PATCH] Move lib/goose into top level pkg --- README.md | 2 +- cmd/goose/cmd_create.go | 2 +- cmd/goose/cmd_dbversion.go | 2 +- cmd/goose/cmd_down.go | 2 +- cmd/goose/cmd_redo.go | 2 +- cmd/goose/cmd_status.go | 2 +- cmd/goose/cmd_up.go | 3 ++- cmd/goose/main.go | 3 ++- lib/goose/dbconf.go => dbconf.go | 0 lib/goose/dbconf_test.go => dbconf_test.go | 0 lib/goose/dialect.go => dialect.go | 0 lib/goose/migrate.go => migrate.go | 0 lib/goose/migrate_test.go => migrate_test.go | 0 lib/goose/migration_go.go => migration_go.go | 2 +- lib/goose/migration_sql.go => migration_sql.go | 0 lib/goose/migration_sql_test.go => migration_sql_test.go | 0 lib/goose/util.go => util.go | 0 17 files changed, 11 insertions(+), 9 deletions(-) rename lib/goose/dbconf.go => dbconf.go (100%) rename lib/goose/dbconf_test.go => dbconf_test.go (100%) rename lib/goose/dialect.go => dialect.go (100%) rename lib/goose/migrate.go => migrate.go (100%) rename lib/goose/migrate_test.go => migrate_test.go (100%) rename lib/goose/migration_go.go => migration_go.go (98%) rename lib/goose/migration_sql.go => migration_sql.go (100%) rename lib/goose/migration_sql_test.go => migration_sql_test.go (100%) rename lib/goose/util.go => util.go (100%) diff --git a/README.md b/README.md index da412eb..21434ef 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ You can manage your database's evolution by creating incremental SQL or Go scrip This will install the `goose` binary to your `$GOPATH/bin` directory. -You can also build goose into your own applications by importing `bitbucket.org/liamstask/goose/lib/goose`. Documentation is available at [godoc.org](http://godoc.org/bitbucket.org/liamstask/goose/lib/goose). +You can also build goose into your own applications by importing `github.com/pressly/goose`. Documentation is available at [godoc.org](http://godoc.org/github.com/pressly/goose). NOTE: the API is still new, and may undergo some changes. diff --git a/cmd/goose/cmd_create.go b/cmd/goose/cmd_create.go index e07a9b4..cd5a796 100644 --- a/cmd/goose/cmd_create.go +++ b/cmd/goose/cmd_create.go @@ -1,7 +1,7 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" "fmt" "log" "os" diff --git a/cmd/goose/cmd_dbversion.go b/cmd/goose/cmd_dbversion.go index ea43f5c..c3e6153 100644 --- a/cmd/goose/cmd_dbversion.go +++ b/cmd/goose/cmd_dbversion.go @@ -1,7 +1,7 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" "fmt" "log" ) diff --git a/cmd/goose/cmd_down.go b/cmd/goose/cmd_down.go index 342a7fc..ed8ac2e 100644 --- a/cmd/goose/cmd_down.go +++ b/cmd/goose/cmd_down.go @@ -1,7 +1,7 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" "log" ) diff --git a/cmd/goose/cmd_redo.go b/cmd/goose/cmd_redo.go index 1776e07..2c59c92 100644 --- a/cmd/goose/cmd_redo.go +++ b/cmd/goose/cmd_redo.go @@ -1,7 +1,7 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" "log" ) diff --git a/cmd/goose/cmd_status.go b/cmd/goose/cmd_status.go index 514de26..c7dc916 100644 --- a/cmd/goose/cmd_status.go +++ b/cmd/goose/cmd_status.go @@ -1,7 +1,7 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" "database/sql" "fmt" "log" diff --git a/cmd/goose/cmd_up.go b/cmd/goose/cmd_up.go index 7f4c66a..d960426 100644 --- a/cmd/goose/cmd_up.go +++ b/cmd/goose/cmd_up.go @@ -1,8 +1,9 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" "log" + + "github.com/pressly/goose" ) var upCmd = &Command{ diff --git a/cmd/goose/main.go b/cmd/goose/main.go index dc84f3a..5679d34 100644 --- a/cmd/goose/main.go +++ b/cmd/goose/main.go @@ -1,12 +1,13 @@ package main import ( - "bitbucket.org/liamstask/goose/lib/goose" "flag" "fmt" "os" "strings" "text/template" + + "github.com/pressly/goose/lib/goose" ) // global options. available to any subcommands. diff --git a/lib/goose/dbconf.go b/dbconf.go similarity index 100% rename from lib/goose/dbconf.go rename to dbconf.go diff --git a/lib/goose/dbconf_test.go b/dbconf_test.go similarity index 100% rename from lib/goose/dbconf_test.go rename to dbconf_test.go diff --git a/lib/goose/dialect.go b/dialect.go similarity index 100% rename from lib/goose/dialect.go rename to dialect.go diff --git a/lib/goose/migrate.go b/migrate.go similarity index 100% rename from lib/goose/migrate.go rename to migrate.go diff --git a/lib/goose/migrate_test.go b/migrate_test.go similarity index 100% rename from lib/goose/migrate_test.go rename to migrate_test.go diff --git a/lib/goose/migration_go.go b/migration_go.go similarity index 98% rename from lib/goose/migration_go.go rename to migration_go.go index f37a8fe..ed13c2c 100644 --- a/lib/goose/migration_go.go +++ b/migration_go.go @@ -105,7 +105,7 @@ import ( "encoding/gob" _ "{{.Import}}" - "bitbucket.org/liamstask/goose/lib/goose" + "github.com/pressly/goose" ) func main() { diff --git a/lib/goose/migration_sql.go b/migration_sql.go similarity index 100% rename from lib/goose/migration_sql.go rename to migration_sql.go diff --git a/lib/goose/migration_sql_test.go b/migration_sql_test.go similarity index 100% rename from lib/goose/migration_sql_test.go rename to migration_sql_test.go diff --git a/lib/goose/util.go b/util.go similarity index 100% rename from lib/goose/util.go rename to util.go