aboutsummaryrefslogtreecommitdiffstats
path: root/internal/commands/create.go
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-06 09:26:41 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-06 09:26:41 -0500
commitfce989c8d14c35e550f58639b2e56f013f7b253e (patch)
tree7bc4df37f80b2bf29ca503373eddf904a677f7d7 /internal/commands/create.go
parentAdd logo (diff)
downloadcli-fce989c8d14c35e550f58639b2e56f013f7b253e.zip
Add support for environment variables
Diffstat (limited to 'internal/commands/create.go')
-rw-r--r--internal/commands/create.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/commands/create.go b/internal/commands/create.go
index 5176648..169bc4d 100644
--- a/internal/commands/create.go
+++ b/internal/commands/create.go
@@ -6,7 +6,7 @@ import (
"fmt"
"os"
- "github.com/eugenetriguba/bolt/internal/config"
+ "github.com/eugenetriguba/bolt/internal/configloader"
"github.com/eugenetriguba/bolt/internal/db"
"github.com/eugenetriguba/bolt/internal/models"
"github.com/eugenetriguba/bolt/internal/repositories"
@@ -48,13 +48,13 @@ func (cmd *CreateCmd) Execute(
return subcommands.ExitFailure
}
- c, err := config.NewConfig()
+ cfg, err := configloader.NewConfig()
if err != nil {
fmt.Fprintln(os.Stderr, err)
return subcommands.ExitFailure
}
- migrationRepo, err := repositories.NewMigrationRepo(conn, c)
+ migrationRepo, err := repositories.NewMigrationRepo(conn, cfg)
if err != nil {
fmt.Fprintln(os.Stderr, err)
return subcommands.ExitFailure