c764deeeb7
feat: simplify command handling for start, pause, and resume
...
- extract command logic into a separate function
- reduce code duplication in keyhandler function
🤖
2024-10-27 22:33:36 +01:00
e0000382e9
fix: move package variable to frontend.Handler
2024-10-27 22:33:36 +01:00
e8b463c59c
format: update import statements
...
- clean up and streamline import statements across multiple files
🤖
2024-10-27 22:33:36 +01:00
f26f12ef98
format: improve variable declaration style
...
- change variable declarations to use a grouped format
🤖
2024-10-27 22:33:36 +01:00
912dfa62f2
format: improve code structure for better readability
...
🤖
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
34d4206f65
fix: use websocket
constant to check IsCloseError
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
4f9bd664a3
fix: remove ununsed return statements in keyhandler()
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
cc24dd6775
fix: pin module git.smsvc.net/pomodoro/gotomato to v0.0.3
2024-10-26 09:27:10 +02:00
f3b9244b16
fix: update module gopkg.in/yaml.v2 to v3
2024-10-26 09:07:41 +02:00
84e95fdd93
chore: update variable in notification logic
2024-10-24 22:33:11 +02:00
77eeb087e3
feat: add state icons for start/paused/stoppped
2024-10-24 19:16:57 +02:00
4a772db0f8
fix: update log level for missing config file
...
- change error log to warning for better severity indication
- update default usage log to warning for consistency
🤖
2024-10-24 07:31:34 +02:00
57871afa68
chore: add .renovaterc.json
2024-10-24 07:27:39 +02:00
6857615585
fix: no error on normal websocket closure
...
- ignore error for normal closure
- log any other errors encountered during message processing
- reorder import statements
🤖
2024-10-24 07:25:48 +02:00
7120877242
feat: fix handling of ~
in default config file path
2024-10-23 21:21:23 +02: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
d83946e255
doc: add 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
25e939f523
feat: make header beautiful
2024-10-23 17:45:47 +02:00
57084c524e
fix: correct help message text
2024-10-23 17:45:18 +02:00
d731fc3e52
feat: hide cursor
2024-10-23 17:45:18 +02:00
ef0f940343
feat: add color output to terminal
...
- add color package for improved terminal output
- update terminal output to use colored text
🤖
2024-10-23 17:45:18 +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
e1984aca10
feat: enhance terminal output with help footer
...
- add footer to terminal output for better user guidance
- show key bindings for start, pause/resume, stop, and quit
🤖
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