Chore: server should live in separate branch

until a usecase for it is found
This commit is contained in:
Grail Finder
2026-02-12 10:26:30 +03:00
parent e42eb96371
commit 8c3c2b9b23
4 changed files with 1 additions and 119 deletions

10
main.go
View File

@@ -1,9 +1,6 @@
package main
import (
"flag"
"strconv"
"github.com/rivo/tview"
)
@@ -20,13 +17,6 @@ var (
)
func main() {
apiPort := flag.Int("port", 0, "port to host api")
flag.Parse()
if apiPort != nil && *apiPort > 3000 {
srv := Server{}
srv.ListenToRequests(strconv.Itoa(*apiPort))
return
}
pages.AddPage("main", flex, true, true)
if err := app.SetRoot(pages,
true).EnableMouse(cfg.EnableMouse).EnablePaste(true).Run(); err != nil {