diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-13 21:47:26 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-13 21:47:26 -0500 |
| commit | 34702d3802c8eb08cf4440c0cbb939b1db45168d (patch) | |
| tree | a9d601c583d431092f74d3af7a98f6b84379ab20 /internal/commands | |
| parent | Tweak doc text (diff) | |
| download | cli-34702d3802c8eb08cf4440c0cbb939b1db45168d.zip | |
Update configuration format and env names
Diffstat (limited to 'internal/commands')
| -rw-r--r-- | internal/commands/down.go | 2 | ||||
| -rw-r--r-- | internal/commands/new.go | 2 | ||||
| -rw-r--r-- | internal/commands/status.go | 2 | ||||
| -rw-r--r-- | internal/commands/up.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/internal/commands/down.go b/internal/commands/down.go index d9965b5..262e229 100644 --- a/internal/commands/down.go +++ b/internal/commands/down.go @@ -69,7 +69,7 @@ func (cmd *DownCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/new.go b/internal/commands/new.go index 864de4e..a4eeff4 100644 --- a/internal/commands/new.go +++ b/internal/commands/new.go @@ -54,7 +54,7 @@ func (cmd *NewCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/status.go b/internal/commands/status.go index 2adafef..417e95b 100644 --- a/internal/commands/status.go +++ b/internal/commands/status.go @@ -59,7 +59,7 @@ func (m *StatusCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/up.go b/internal/commands/up.go index 57f9109..ba74299 100644 --- a/internal/commands/up.go +++ b/internal/commands/up.go @@ -69,7 +69,7 @@ func (cmd *UpCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure |