refine architecture
change module name to repo
This commit is contained in:
18
pkg/tui/tui.go
Normal file
18
pkg/tui/tui.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package tui
|
||||
|
||||
import (
|
||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||
"context"
|
||||
)
|
||||
|
||||
type TUIConfig = service.Config
|
||||
|
||||
func Run(ctx context.Context, config TUIConfig) error {
|
||||
_, cleanup, err := service.NewServices(ctx, config)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer cleanup()
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user