add repl that tunnels pm and shell commands

This commit is contained in:
Robin Olsen
2026-02-05 18:18:16 +01:00
parent 2215b5ad34
commit bf1842b1f9
6 changed files with 302 additions and 14 deletions

View File

@@ -1,17 +1,19 @@
package main
import (
"context"
"fmt"
"os"
"github.com/LazyBachelor/LazyPM/pkg"
"github.com/LazyBachelor/LazyPM/pkg/cli"
"github.com/LazyBachelor/LazyPM/pkg/tui"
"github.com/LazyBachelor/LazyPM/pkg/web"
"context"
"fmt"
"os"
)
func main() {
config := pkg.SurveyConfig{
RootCmd: "pm",
WebAddress: "localhost:8080",
IssuePrefix: "pm",
BeadsDBPath: "./.pm/db.db",
@@ -25,7 +27,7 @@ func main() {
case "tui":
err = tui.Run(ctx, config)
case "cli":
err = cli.Run(ctx, config)
err = cli.RunREPL(ctx, config)
case "web":
err = web.Run(ctx, config)
default: