add repl and cli to survey
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/LazyBachelor/LazyPM/pkg"
|
"github.com/LazyBachelor/LazyPM/pkg"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/cli"
|
"github.com/LazyBachelor/LazyPM/pkg/cli"
|
||||||
|
"github.com/LazyBachelor/LazyPM/pkg/cli/repl"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/tui"
|
"github.com/LazyBachelor/LazyPM/pkg/tui"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/web"
|
"github.com/LazyBachelor/LazyPM/pkg/web"
|
||||||
)
|
)
|
||||||
@@ -27,7 +28,9 @@ func main() {
|
|||||||
case "tui":
|
case "tui":
|
||||||
err = tui.Run(ctx, config)
|
err = tui.Run(ctx, config)
|
||||||
case "cli":
|
case "cli":
|
||||||
err = cli.RunREPL(ctx, config)
|
err = cli.RunWithArgs(ctx, config, os.Args[2:])
|
||||||
|
case "repl":
|
||||||
|
err = repl.RunREPL(ctx, config)
|
||||||
case "web":
|
case "web":
|
||||||
err = web.Run(ctx, config)
|
err = web.Run(ctx, config)
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user