a4bbe933be
chore: add yaml schemas to Taskfile.yml
and .goreleaser.yaml
2024-11-09 21:44:42 +01:00
ab6e4d493d
fix(goreleaser): don't force-remove ./dist
2024-11-09 21:44:42 +01:00
cc6c674574
merge tasks
2024-11-09 21:44:42 +01:00
29db2e0038
add requirements to Taskfile.yml
2024-11-09 20:32:05 +01:00
00bac67ce3
XXX remove release:file task
2024-11-09 20:24:48 +01:00
3d8591cad6
use plain svu version (don't strip prefix)
2024-11-09 20:24:48 +01:00
5caf2f7d50
add snapshot
task
2024-11-09 20:24:48 +01:00
2421a40271
only run dorelase
in main
branch
2024-11-09 20:24:48 +01:00
79a0905362
split tasks into indiviual units
...
create standalone `goreleaser` task
create standalone `dorelease` task
2024-11-09 20:24:48 +01:00
7619e35d04
add warning prompt
2024-11-09 20:24:48 +01:00
1e06a1f228
feat: add release management via taskdev
...
- create `Taskfile.yml`
- update version file with the new release version
- add new version tag
- push to remote and run goreleaser
2024-11-09 20:24:48 +01:00
4ed7a8f887
feat: update -version
output
2024-11-09 20:24:48 +01:00
b22bc35bbd
feat: retrieve version from runtime/debug.Main.Version
or latest git tag
...
- set version from runtime/debug.Main.Version
- use latest git tag as fallback
- allow GoTomatoVersion to be overwritten via ldflags
2024-11-09 20:24:48 +01:00
c937a7b904
fix: restore filter that excludes version bump entries
2024-11-09 15:58:14 +01:00
6a3919e95e
feat(goreleaser): update changelog configuration
...
- uses the compare Gitea API
- drop `sort` setting
- remove the filter that excludes version bump entries
2024-11-07 20:07:20 +01:00
61fc21224c
feat: set version from git tag on build
...
- make `GoTomatoVersion` a variable and default it to "devel"
- add ldflags to `.goreleaser.yaml` for version tagging
- remove "v" from output of `-version`
2024-11-07 19:20:29 +01:00
783d158e92
feat: bump version to 0.1.1
2024-11-06 23:23:19 +01:00
f346cbbcaa
feat: add initial configuration for GoReleaser
...
🤖
2024-11-06 23:23:10 +01:00
b15324f6f8
feat: bump version to v0.1.0
2024-11-06 20:51:25 +01:00
cbe2e007de
break: drop "v" from version string const
...
- removes "v" from the ProtocolVersion in the ServerMessage
- remove "v" prefix from GoTomatoVersion constant
- re-add "v" for for human readable output (`-version`)
- update README
2024-11-06 20:50:49 +01:00
d7b7789051
feat: bump version to v0.0.8
2024-11-04 20:35:01 +01:00
600d2ed2ff
feat: implement centralized logging helper
...
- remove direct log usage
- create a new logging helper
- update all log calls to use the new Logger instance
- set timestamp to ISO8601
🤖
2024-11-04 20:33:25 +01:00
76f3954299
feat: bump version to v0.0.7
2024-11-03 11:19:03 +01:00
44a64bfce4
feat: handle X-Forward-For for log output
...
- add Gorilla handlers package for enhanced HTTP handling
- refactor HTTP server to use a new ServeMux for routing
- update ListenAndServe to utilize ProxyHeaders for better proxy support
- add RealIP field to client model
- use RealIP fild for connect/disconnect log output
2024-11-03 11:17:23 +01:00
dd9490bb3b
feat: bump version to v0.0.6
2024-10-30 11:29:47 +01:00
e7618b19ef
feat: validate client settings and improve logging
...
- add a function to check if Pomodoro settings are valid
- log a warning for invalid client configurations
- log an info message for valid client configurations
- implement Stringer interface for PomodoroConfig model
🤖
2024-10-30 11:28:42 +01:00
f4fd37c551
feat: update logging for client connect and disconnect
...
- update logging to use ws.RemoteAddr()
🤖
2024-10-30 10:20:44 +01:00
0ee955189c
feat: update client management to use local address as identifier
...
- change Clients map to use net.Addr as the key type
- update `HandleConnection()` to store clients using LocalAddr
- modify `handleClientCommands()` to delete clients by LocalAddr
🤖
2024-10-30 10:20:12 +01:00
ebb58a4489
feat: rename Client
model to WebsocketClient
...
🤖
2024-10-30 09:57:09 +01:00
2d2ea6ff78
feat: bump version to v0.0.5
2024-10-30 08:11:54 +01:00
bdfd5c3b84
feat: remove unused client mutex
...
- remove unused Mutex from `models.Client` struct
- remove lock from `HandleConnection()`
- replace websocket.Conn with models.Client in `handleClientCommands()`
🤖
2024-10-30 08:09:41 +01:00
94b6786c7c
feat: implement asynchronous timer start
...
- add new StartAsync method to Timer for non-blocking execution
- use new method in RunPomodoro()
🤖
2024-10-30 07:46:29 +01:00
d0b1260f62
doc: add and improve comments
2024-10-30 07:39:30 +01:00
d83acc77b2
refactor: rename HandleConnections to HandleConnection
...
- rename function to better reflect its purpose
🤖
2024-10-29 20:21:00 +01:00
b8823acc97
refacor: replace shared.Message with shared.State
...
🤖
2024-10-29 18:46:00 +01:00
5750ec96cb
refactor: update version output
...
- use `Println` for better readability
2024-10-29 11:05:45 +01:00
d69a4bec10
format: use group style variable declaration to define cli flags
2024-10-29 11:05:45 +01:00
e2ab19066d
format: update import statements order for consistency
2024-10-29 11:05:45 +01:00
3a6be4c187
feat: update settings handling for pomodoro configuration
...
- add `UpdateSettings()` to update pomodoro configuration
- refactor client command handling to use `UpdateSettings()`
🤖
2024-10-29 11:05:45 +01:00
f0d7dc80fc
feat: update protocol version handling
...
- add ProtocolVersion variable to metadata package
- don't set `ServerMessage.ProtocolVersion` in `main`
- update `ServerMessage` default to include ProtocolVersion
🤖
2024-10-29 11:05:44 +01:00
f8ab1375d1
chore: bump version to v0.0.4
2024-10-29 11:05:30 +01:00
ffc994126b
break: rename GoTomatoServerConfig
-> ServerConfig
2024-10-26 10:19:55 +02:00
c20d36d2d2
break: rename GoTomatoPomodoroConfig
-> PomodoroConfig
2024-10-26 10:19:50 +02:00
0180aea8c1
break: rename ServerMessage.GoTomatoVersion
-> .ProtocolVersion
2024-10-26 10:19:48 +02:00
16bc946a30
break: rename ClientCommand.PomodoroSettings
-> .Settings
2024-10-26 10:19:44 +02:00
61b2f71bf3
break: rename ServerMessage.PomodoroSettings
-> .Settings
2024-10-26 10:19:41 +02:00
06633ff438
feat: bump version to v0.0.3
2024-10-26 00:15:02 +02:00
fa3ba759c4
feat: update startup log messages
...
- add startup message for version information
- reformat log for websocket listening address
2024-10-26 00:15:02 +02:00
899417b605
feat: replace standard log with charmbracelet/log
...
- update logging to use charmbracelet/log package
- improve log messages for server start and errors
- enhance client connection and disconnection logs
🤖
2024-10-26 00:15:02 +02:00
3eae584d6d
recator: use timer signals instead of shared.Message.TimeLeft
...
- remove shared.Message.TimeLeft
- modify Timer struct
- add TimeLeft signal
- add End and Abort signals
- add syncronised ticker
- update RunPomodoro to use goroutines for timer starts
- add waitForTimer function
2024-10-25 23:19:58 +02:00