Files
sonr/internal/front/command.go
T

23 lines
417 B
Go
Raw Normal View History

2024-09-07 18:12:58 -04:00
package front
import (
"log"
"net/http"
"github.com/labstack/echo/v4"
"github.com/spf13/cobra"
)
func NewServeFrontendCmd() *cobra.Command {
return &cobra.Command{
Use: "serve-web",
Short: "TUI for managing the local Sonr validator node",
Run: func(cmd *cobra.Command, args []string) {
e := echo.New()
if err := e.Start(":42069"); err != http.ErrServerClosed {
log.Fatal(err)
}
},
}
}