summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-12 10:26:30 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-12 10:26:30 +0300
commit8c3c2b9b23a5b41e207d5771bb365e2c391ed0ea (patch)
tree54bda61b46c4291054c46a08b2fd7f87d0ca5714 /main.go
parente42eb9637190a2e89cf7e37cb10ca986835d9d7a (diff)
Chore: server should live in separate branch
until a usecase for it is found
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/main.go b/main.go
index c112fac..45f0d4b 100644
--- a/main.go
+++ b/main.go
@@ -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 {