diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-12 10:26:30 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-12 10:26:30 +0300 |
| commit | 8c3c2b9b23a5b41e207d5771bb365e2c391ed0ea (patch) | |
| tree | 54bda61b46c4291054c46a08b2fd7f87d0ca5714 /main.go | |
| parent | e42eb9637190a2e89cf7e37cb10ca986835d9d7a (diff) | |
Chore: server should live in separate branch
until a usecase for it is found
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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 { |
