From 8c3c2b9b23a5b41e207d5771bb365e2c391ed0ea Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 12 Feb 2026 10:26:30 +0300 Subject: Chore: server should live in separate branch until a usecase for it is found --- main.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'main.go') 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 { -- cgit v1.2.3