Commit graph

18 commits

Author SHA1 Message Date
480f1c0cdd feat: improve config file handling
- add default config file
- read passed config file or use default if none provided
- ensure cli parameters always supersede config file settings
- add function to check if a file exists

🤖
2024-10-30 09:32:37 +01:00
b374ee8aff feat: add Password field to PomodoroClient struct
remove unused password parameters from Client-Methods

🤖
2024-10-30 09:00:29 +01:00
b943c9d6eb feat: refactor connection handling to use models.Client
- introduce `Client` model
- modify all websocket operations to use the new `Client` model
- update function signatures to accept `models.Client` instead of `*websocket.Conn`
- ensure consistent usage of `client` across all related functions

🤖
2024-10-30 08:28:22 +01:00
5f65b9aa56 fix: make ServerMessage channel unbuffered
- remove buffer size from channel for better memory management

🤖
2024-10-29 18:13:02 +01:00
a03d27ae0f feat: rename frontend.Handler to frontend.UpdateLoop for clarity
🤖
2024-10-28 09:02:18 +01:00
f26f12ef98 format: improve variable declaration style
- change variable declarations to use a grouped format

🤖
2024-10-27 22:33:36 +01:00
c2310f7735 refactor: improve cli parameter handling
- streamline `main` functions
- refactor cli parameter handling
2024-10-27 22:33:36 +01:00
f54e8486f1 break: configure via file OR cli parameters
no more defaults when no parameter passed!
2024-10-27 22:33:36 +01:00
bbc9977f1c feat: refactor shared.Message to a channel
- remove `shared` package and shared.Message
- rename `notifications` package to `frontend`
- introduce a channel send the received ServerMessages to the frontend handler(s)
- move keyhandler to goroutine
- simplify password handling in Start function
- update import names when importing from GoTomoto
2024-10-27 22:33:30 +01:00
e14492a01c feat: refactor signal handling and update websocket disconnect handling
- remove os signal handling interrupt
- rename WaitForDisconnect to Disconnect function
- improve websocket disconnection logic
- exit keyboard listener on disconnect

🤖
2024-10-23 21:21:23 +02:00
deff8f3554 feat: move cursor.Hide() to main
- hide cursor at the start of the client
- ensure cursor is shown again after client execution

🤖
2024-10-23 21:21:23 +02:00
064056e8cb feat: update module path
- modify go.mod to reflect the new module path
- update config file path in the main function
- adjust import statements in various internal packages
- add install instructions to README

🤖
2024-10-23 21:21:23 +02:00
46d3e02f33 feat: instroduce reset command
- change stop command from 'r' to 's' for better clarity
- add reset command 'r' to the terminal help
- ensure pomodoro settings are sent correctly on reset command

🤖
2024-10-23 21:21:23 +02:00
bb790459c1 feat: add configuration file handling
- add helper function to parse configuration from a YAML file
- update command-line parameters to include a config file option
- remove hardcoded Pomodoro settings and use parsed config instead
- delete obsolete PomodoroSettings.go file

🤖
2024-10-23 17:45:56 +02:00
98013780da feat: refactor to use local pointer for ServerMessage
- replace `shared.ServerMessage` with local pomodoro pointer
- update conditions to use `pomodoro` instead of `shared.ServerMessage`

🤖
2024-10-23 17:45:18 +02:00
a61da7d280 chore: reorder parameters in SendCmd function
🤖
2024-10-23 17:45:18 +02:00
4dcc984784 feat: add keyboard controls
- add keyboard listener for space, r, and q keys
- create shared state for server messages
- update desktop and terminal notifications to use shared state

🤖
2024-10-23 17:43:47 +02:00
11c599a371 Genesis 2024-10-23 17:43:44 +02:00