Commit Graph

15 Commits

Author SHA1 Message Date
e0f45bdd5e feat: add favorites management (CLI + TUI) and in-filter server search
Some checks failed
gobuild / build (push) Failing after 5s
- New `gostations fav` subcommand with `list`, `add`, `del` (supports index, URL, or search flags)
- TUI favorites toggle via `f` key; favorites auto-detected on load for "Your Favorites" title
- Pressing ENTER while filtering performs a server-side search and refreshes the list
- Default TUI now loads favorites if present, otherwise falls back to broad station lookup
- Added `sortedForDisplay` for stable fav list ordering and index-based deletion
- Tests for favorites title heuristic, sorted display, and fav del-by-index integration
2026-06-05 22:30:50 +01:00
ec5db53b8e feat(cli): default to bubbles TUI, add find/play subcmds + JSON favorites
Some checks failed
gobuild / build (push) Failing after 4s
- implement internal/ui with bubbles list + ★ fav markers, filter, enter stub
- add data/favorites (JSON roundtrip, Add/Remove, XDG), config tests
- wire subcommands: `find -j`, `play [url|search]`
- gate legacy wmenu behind --legacy; keep old flags for seeding
- fix inverted -short guards, format string, go.mod deps
- add unit tests for radio prune, player IsInstalled, ui keys, etc.
2026-06-05 21:23:11 +01:00
b378fec3b2 refactor: reorganize into internal packages, fix critical panics and error handling
Some checks failed
gobuild / build (push) Failing after 4s
Move browser, config, player, and radio logic into internal/{config,radio,player,ui,version}.
Add cached API host resolution, context-aware HTTP client, and nil/length guards to eliminate
RandomIP, nslookup, reverseLookup, and GetStations panics. Replace subExecute with clean
legacyPlayer using Run-only execution. Fix inverted -short test guards, unformatted config
error messages, and "Erorr" typo. Remove obsolete vendor/GOPATH logic from build scripts.
Update callers in stations.go and radiomenu.go to new paths; retain shims for transition.
2026-06-05 21:10:54 +01:00
Greg Gauthier
fd70f428ae fixes for windows 2024-07-09 21:29:11 +01:00
1cbf1c542e add build script with versioning 2021-03-18 22:24:46 +00:00
702edbc7a4 add a makeshift versioning for the executable to distinguish each build 2021-03-18 21:14:53 +00:00
Greg Gauthier
73dc128eb9 add a check for the console stream player 2021-03-17 07:17:09 +00:00
0d9068ef90 radio menu first pass, complete 2021-03-16 23:06:20 +00:00
Greg Gauthier
90907d0d05 brain storm: allow toggling of down station display; default to no 2021-03-16 20:17:10 +00:00
Greg Gauthier
35819226bf done for the night 2021-03-16 19:55:59 +00:00
Greg Gauthier
16e0fdd9de clean up the help display; fine-tune the parsing; prepare for the menu 2021-03-16 19:27:52 +00:00
Greg Gauthier
a06bc91576 json parsing: GO! next up: generate the menu... 2021-03-16 16:42:30 +00:00
Greg Gauthier
3da2da7d4b set up the ip reverse lookup for the api host, and start figuring out the json parsing 2021-03-16 14:46:28 +00:00
Greg Gauthier
70c0204128 setup comamnd line argument parsing 2021-03-16 13:09:27 +00:00
Greg Gauthier
237155552a completed the config port 2021-03-16 12:32:59 +00:00