Skip to content

Commit

Permalink
refactor: divide cmd and main
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Dec 15, 2023
1 parent d233ca4 commit bce7ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/uniflow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cmd/uniflow/cmd.go → cmd/uniflow/uniflow/cmd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package uniflow

import (
"io/fs"
Expand Down

0 comments on commit bce7ffe

Please sign in to comment.