Commit Graph

61 Commits

Author SHA1 Message Date
3924aae93b feat(ui): custom substring/AND filter for station list
Some checks failed
gobuild / build (push) Failing after 3s
Replace default fuzzy filter with substring matching where multi-word
queries require all words to appear. Fix auto-filter typing to properly
batch returned commands instead of discarding them. Update tests to
drive command loops and verify exact substring matches.
2026-06-05 21:46:04 +01:00
444193a5d2 feat(ui): auto-filter on typing + refactor item struct with favorites
Some checks failed
gobuild / build (push) Failing after 3s
- Add auto-start filter when typing alphanumeric characters
- Refactor item struct to use explicit station field and isFavorite flag
- Show ★ prefix for favorites in list rendering
- Improve description formatting with bullet separators
- Include URL in FilterValue for better search
- Update help text and add corresponding test
2026-06-05 21:36:49 +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
5bbeb66afb test: add unit and integration tests for core functionality
All checks were successful
gobuild / build (push) Successful in 21s
Added comprehensive unit and live integration tests in new files:
- commander_test.go: Covers isInstalled and subExecute functions
- filer_test.go: Covers createIniFile with various scenarios
- radiomenu_test.go: Covers Short, Quit, and RadioMenu
- stations_test.go: Covers showVersion and precheck

These tests ensure reliability across happy paths, edge cases, and live environments.
2026-03-03 19:21:24 +00:00
505e25189e fix typos
All checks were successful
gobuild / build (push) Successful in 27s
2024-07-21 18:50:08 +00:00
2b1c44a619 step tweaks
Some checks failed
gobuild / build (push) Failing after 2s
2024-07-21 18:48:07 +00:00
be1a214a13 try to use the golang image for my build
Some checks failed
gobuild / build (push) Failing after 2s
2024-07-21 18:44:55 +00:00
c34bdf66f2 FINE. I'll hard code it.
All checks were successful
gobuild / build (push) Successful in 30s
2024-07-21 17:35:28 +01:00
1f27512017 custom build script for gitea runner
Some checks failed
gobuild / build (push) Failing after 8s
2024-07-21 17:33:05 +01:00
3ae9f2afa2 custom build script for gitea runner
Some checks failed
gobuild / build (push) Failing after 8s
2024-07-21 17:29:16 +01:00
767b1e8a7c add gitea workflow
Some checks failed
gobuild / build (push) Failing after 8s
2024-07-21 17:24:03 +01:00
cda405a9e2 test commit 2024-07-11 19:16:41 +01:00
5fa2bc67fd Merge branch 'master' of gitea.gmgauthier.com:DemoReel/gostations 2024-07-11 15:05:38 +01:00
d92771b7ec test commit 2024-07-11 11:04:50 +01:00
a2c48e95b7 copy build executable to local bin 2024-07-11 09:18:11 +01:00
8c0e3a896d fix config lookups for windows
make config.go sensitive to the windows environment.
2024-07-10 22:42:05 +01:00
Greg Gauthier
ea29c29531 created new build script for powershell 2024-07-09 23:33:44 +01:00
Greg Gauthier
fd70f428ae fixes for windows 2024-07-09 21:29:11 +01:00
c2508127b4 package updates 2023-12-13 12:00:28 +00:00
Greg Gauthier
d0a8fdfb11 add buildpath and platform to the downloader 2021-03-19 09:15:37 +00:00
Greg Gauthier
8a78251c05 add buildpath and platform to the downloader 2021-03-19 09:12:31 +00:00
Greg Gauthier
00c8b76fe0 add buildpath to the downloader 2021-03-19 09:08:01 +00:00
Greg Gauthier
27a7d9f60b add buildpath to the downloader 2021-03-19 09:05:48 +00:00
Greg Gauthier
027d922916 add platform name to version string 2021-03-19 08:47:56 +00:00
Greg Gauthier
758d317d0f add platform spec to build path;echo version to console 2021-03-19 08:45:56 +00:00
Greg Gauthier
44080ebac9 ignore the go.sum. every time a build occurs this changes. No need to capture, if the build is always going to generate this anyway 2021-03-19 08:02:02 +00:00
Greg Gauthier
0fa518cd00 don't assume gopath is set 2021-03-19 07:54:29 +00:00
Greg Gauthier
b2a096a956 Merge branch 'master' of bitbucket.org:gmgauthier_ecs/gostations 2021-03-19 07:34:37 +00:00
Greg Gauthier
419372c49d Merge branch 'master' of github.com:gmgauthier/gostations 2021-03-19 07:34:12 +00:00
eb19d5280a
Merge pull request #2 from gmgauthier/versioning_for_gostations
Versioning for gostations
2021-03-18 22:26:55 +00: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
8df21e59b0 updated sum 2021-03-18 20:50:54 +00:00
Greg Gauthier
370876db38 add binary download to the downloads page 2021-03-18 18:42:35 +00:00
Greg Gauthier
be14b434fc for some reason, bitbucket doesn't like the cover option 2021-03-18 08:05:47 +00:00
Greg Gauthier
39d1baf41b add coverage reporting 2021-03-18 07:54:02 +00:00
Greg Gauthier
e67d973c2f clean up test and build step. makes more sense now. 2021-03-18 07:52:33 +00:00
Greg Gauthier
9dd8ef46bd activate testing steps 2021-03-18 07:33:35 +00:00
Greg Gauthier
b6b35d1000 basic testing and a few tweaks 2021-03-17 19:11:18 +00:00
Greg Gauthier
967337a938 forgot to remove fileClose 2021-03-17 13:49:29 +00:00
Greg Gauthier
ca2978318b Merge branch 'master' of github.com:gmgauthier/gostations 2021-03-17 13:47:49 +00:00
Greg Gauthier
d2c1b6af28 Merge branch 'master' of bitbucket.org:gmgauthier_ecs/gostations 2021-03-17 13:46:18 +00:00
Greg Gauthier
b6e5c15d1c fix linter issues 2021-03-17 13:45:54 +00:00
Greg Gauthier
9bd0bbda1c Initial Bitbucket Pipelines configuration 2021-03-17 12:09:09 +00:00
d68490ee57
Update README.md 2021-03-17 11:51:25 +00:00
Greg Gauthier
56b1ce1c4b update readme 2021-03-17 11:30:12 +00:00
Greg Gauthier
ccca9cde16 add handler for config file. Generate one if none is present 2021-03-17 08:47:51 +00:00
Greg Gauthier
73dc128eb9 add a check for the console stream player 2021-03-17 07:17:09 +00:00
Greg Gauthier
b92b63e1a7 I wonder if go.sum should be ignored? 2021-03-17 07:06:09 +00:00