Skip to content

Commit

Permalink
general updates (#15)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Kaya-Sem authored Aug 17, 2024
1 parent ebd0dea commit 1aa6bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", "")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1aa6bda

Please sign in to comment.