Merge remote-tracking branch 'origin/main' into LPM-32
This commit is contained in:
@@ -5,14 +5,20 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/LazyBachelor/LazyPM/pkg"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/cli"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/cli/repl"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/tui"
|
||||
"github.com/LazyBachelor/LazyPM/pkg/web"
|
||||
)
|
||||
|
||||
func main() {
|
||||
config := pkg.SurveyConfig{
|
||||
RootCmd: "pm",
|
||||
WebAddress: "localhost:8080",
|
||||
IssuePrefix: "pm",
|
||||
BeadsDBPath: "./.pm/db.db",
|
||||
@@ -26,7 +32,9 @@ func main() {
|
||||
case "tui":
|
||||
_, err = tui.Run(ctx, config)
|
||||
case "cli":
|
||||
err = cli.Run(ctx, config)
|
||||
err = cli.RunWithArgs(ctx, config, os.Args[2:])
|
||||
case "repl":
|
||||
err = repl.RunREPL(ctx, config)
|
||||
case "web":
|
||||
err = web.Run(ctx, config)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user