From 1aa6bdaee32aae06d2a9a5b01ac1c117ca3b086c Mon Sep 17 00:00:00 2001 From: Kaya-Sem <73200952+Kaya-Sem@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:53:47 +0200 Subject: [PATCH] general updates (#15) * update (#10) * removed overlap in different models * implemented showing message after closing table with selection * added quit option "escape" quits table with any additional info * updated to more correct color name lol * show detailed information for a departure * fixed import path * Update README.md added installation options * Dev (#8) * fixed import path * added autobuild * Update README.md (#9) added installation options * created const * cleanup and refactor * corrected if-else block * refactor of project structure * rename * added delay to timetable * cleanup dependencies * refactor name * mega refactor * abstracted spinner * print detailed info on enter connections * trimmed spinner indenting --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9513ba3..c5d024c 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ func main() { } func handleConnection(stationFrom string, stationTo string) { - s := cmd.NewSpinner(" ", " fetching connections...", 1*time.Second) + s := cmd.NewSpinner(" ", " fetching connections...", 1*time.Second) s.Start() connectionsJSON, err := api.GetConnections(stationFrom, stationTo, "", "") @@ -85,7 +85,7 @@ func handleSearch() { } func handleTimetable(stationName string) { - s := cmd.NewSpinner(" ", " fetching timetable...", 1*time.Second) + s := cmd.NewSpinner(" ", " fetching timetable...", 1*time.Second) s.Start() timetableJSON, err := api.GetSNCBStationTimeTable(stationName, "", "departure")