diff --git a/cmd/uniflow/main.go b/cmd/uniflow/main.go index 9ea02273..646585e7 100644 --- a/cmd/uniflow/main.go +++ b/cmd/uniflow/main.go @@ -6,6 +6,7 @@ import ( "os" "strings" + "github.com/siyul-park/uniflow/cmd/uniflow/uniflow" "github.com/siyul-park/uniflow/pkg/database" "github.com/siyul-park/uniflow/pkg/database/memdb" "github.com/siyul-park/uniflow/pkg/database/mongodb" @@ -80,7 +81,7 @@ func execute() error { } systemx.AddToScheme(st)(sc) - cmd := NewCmd(Config{ + cmd := uniflow.NewCmd(uniflow.Config{ Scheme: sc, Hook: hk, Database: db, diff --git a/cmd/uniflow/cmd.go b/cmd/uniflow/uniflow/cmd.go similarity index 98% rename from cmd/uniflow/cmd.go rename to cmd/uniflow/uniflow/cmd.go index c438c527..8bf5fcb6 100644 --- a/cmd/uniflow/cmd.go +++ b/cmd/uniflow/uniflow/cmd.go @@ -1,4 +1,4 @@ -package main +package uniflow import ( "io/fs"