From a4bbc26e1ea448e72fe09e0ab1f5703d583f89f9 Mon Sep 17 00:00:00 2001 From: Vladimir Sagan Date: Fri, 9 Sep 2016 16:50:20 +0300 Subject: [PATCH] rename lib goose to gormgoose --- README.md | 2 +- cmd/gorm-goose/cmd_create.go | 2 +- cmd/gorm-goose/cmd_dbversion.go | 2 +- cmd/gorm-goose/cmd_down.go | 2 +- cmd/gorm-goose/cmd_redo.go | 2 +- cmd/gorm-goose/cmd_status.go | 2 +- cmd/gorm-goose/cmd_up.go | 2 +- cmd/gorm-goose/main.go | 2 +- lib/{goose => gorm-goose}/dbconf.go | 2 +- lib/{goose => gorm-goose}/dbconf_test.go | 2 +- lib/{goose => gorm-goose}/migrate.go | 2 +- lib/{goose => gorm-goose}/migrate_test.go | 2 +- lib/{goose => gorm-goose}/migration_go.go | 2 +- lib/{goose => gorm-goose}/migration_sql.go | 2 +- lib/{goose => gorm-goose}/migration_sql_test.go | 2 +- lib/{goose => gorm-goose}/util.go | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) rename lib/{goose => gorm-goose}/dbconf.go (99%) rename lib/{goose => gorm-goose}/dbconf_test.go (98%) rename lib/{goose => gorm-goose}/migrate.go (99%) rename lib/{goose => gorm-goose}/migrate_test.go (98%) rename lib/{goose => gorm-goose}/migration_go.go (99%) rename lib/{goose => gorm-goose}/migration_sql.go (99%) rename lib/{goose => gorm-goose}/migration_sql_test.go (99%) rename lib/{goose => gorm-goose}/util.go (96%) diff --git a/README.md b/README.md index 06a1551..a337496 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ You can manage your database's evolution by creating incremental SQL or Go scrip This will install the `gorm-goose` binary to your `$GOPATH/bin` directory. -You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/goose`. +You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/gorm-goose`. # Usage diff --git a/cmd/gorm-goose/cmd_create.go b/cmd/gorm-goose/cmd_create.go index ee8cba9..22974b4 100644 --- a/cmd/gorm-goose/cmd_create.go +++ b/cmd/gorm-goose/cmd_create.go @@ -7,7 +7,7 @@ import ( "path/filepath" "time" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var createCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_dbversion.go b/cmd/gorm-goose/cmd_dbversion.go index b6437b6..cdbc723 100644 --- a/cmd/gorm-goose/cmd_dbversion.go +++ b/cmd/gorm-goose/cmd_dbversion.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var dbVersionCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_down.go b/cmd/gorm-goose/cmd_down.go index d32434b..0b3fcc2 100644 --- a/cmd/gorm-goose/cmd_down.go +++ b/cmd/gorm-goose/cmd_down.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var downCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_redo.go b/cmd/gorm-goose/cmd_redo.go index eb78c8d..8d3cc4f 100644 --- a/cmd/gorm-goose/cmd_redo.go +++ b/cmd/gorm-goose/cmd_redo.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var redoCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_status.go b/cmd/gorm-goose/cmd_status.go index 6ac5933..9c89547 100644 --- a/cmd/gorm-goose/cmd_status.go +++ b/cmd/gorm-goose/cmd_status.go @@ -6,7 +6,7 @@ import ( "path/filepath" "time" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" "github.com/jinzhu/gorm" ) diff --git a/cmd/gorm-goose/cmd_up.go b/cmd/gorm-goose/cmd_up.go index 5997dda..1d1e802 100644 --- a/cmd/gorm-goose/cmd_up.go +++ b/cmd/gorm-goose/cmd_up.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var upCmd = &Command{ diff --git a/cmd/gorm-goose/main.go b/cmd/gorm-goose/main.go index 478c620..c5accf1 100644 --- a/cmd/gorm-goose/main.go +++ b/cmd/gorm-goose/main.go @@ -7,7 +7,7 @@ import ( "strings" "text/template" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) // global options. available to any subcommands. diff --git a/lib/goose/dbconf.go b/lib/gorm-goose/dbconf.go similarity index 99% rename from lib/goose/dbconf.go rename to lib/gorm-goose/dbconf.go index 6531596..bc19ff7 100644 --- a/lib/goose/dbconf.go +++ b/lib/gorm-goose/dbconf.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "fmt" diff --git a/lib/goose/dbconf_test.go b/lib/gorm-goose/dbconf_test.go similarity index 98% rename from lib/goose/dbconf_test.go rename to lib/gorm-goose/dbconf_test.go index db526b3..34200af 100644 --- a/lib/goose/dbconf_test.go +++ b/lib/gorm-goose/dbconf_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "os" diff --git a/lib/goose/migrate.go b/lib/gorm-goose/migrate.go similarity index 99% rename from lib/goose/migrate.go rename to lib/gorm-goose/migrate.go index 483fcfc..06c7a40 100644 --- a/lib/goose/migrate.go +++ b/lib/gorm-goose/migrate.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "errors" diff --git a/lib/goose/migrate_test.go b/lib/gorm-goose/migrate_test.go similarity index 98% rename from lib/goose/migrate_test.go rename to lib/gorm-goose/migrate_test.go index 6dbffa3..da1e789 100644 --- a/lib/goose/migrate_test.go +++ b/lib/gorm-goose/migrate_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "testing" diff --git a/lib/goose/migration_go.go b/lib/gorm-goose/migration_go.go similarity index 99% rename from lib/goose/migration_go.go rename to lib/gorm-goose/migration_go.go index 318b5a4..4bb70ca 100644 --- a/lib/goose/migration_go.go +++ b/lib/gorm-goose/migration_go.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "bytes" diff --git a/lib/goose/migration_sql.go b/lib/gorm-goose/migration_sql.go similarity index 99% rename from lib/goose/migration_sql.go rename to lib/gorm-goose/migration_sql.go index 7a56891..d03073c 100644 --- a/lib/goose/migration_sql.go +++ b/lib/gorm-goose/migration_sql.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "bufio" diff --git a/lib/goose/migration_sql_test.go b/lib/gorm-goose/migration_sql_test.go similarity index 99% rename from lib/goose/migration_sql_test.go rename to lib/gorm-goose/migration_sql_test.go index 5852960..c3513b2 100644 --- a/lib/goose/migration_sql_test.go +++ b/lib/gorm-goose/migration_sql_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "strings" diff --git a/lib/goose/util.go b/lib/gorm-goose/util.go similarity index 96% rename from lib/goose/util.go rename to lib/gorm-goose/util.go index 6296923..c8a7ef9 100644 --- a/lib/goose/util.go +++ b/lib/gorm-goose/util.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "io"