construct structs
This commit is contained in:
@@ -14,6 +14,8 @@ func main() {
|
||||
StatisticsStoragePath: "./.pm/stats.json",
|
||||
}
|
||||
|
||||
cli := cli.NewCli()
|
||||
|
||||
if err := cli.Run(context.Background(), config); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ func main() {
|
||||
IssuePrefix: "pm",
|
||||
}
|
||||
|
||||
if _, err := tui.Run(context.Background(), config); err != nil {
|
||||
tui := tui.NewTui()
|
||||
|
||||
if err := tui.Run(context.Background(), config); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/web"
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/web"
|
||||
)
|
||||
|
||||
func main() {
|
||||
web := web.NewWeb()
|
||||
|
||||
config := service.Config{
|
||||
WebAddress: "localhost:8080",
|
||||
BeadsDBPath: "./.pm/db.db",
|
||||
|
||||
Reference in New Issue
Block a user