A GoTomato TUI client written in Go
Find a file
Sebastian Mark 05e8bf5854 feat: reconnect on disconnect (add status to TUI)
- add `Connected()` method for client
- add `LastErr` field to GoTomatoClient
  - replace error logging by updating `LastErr` field
  - modify methods to use pointer receivers for Client
- add `prevMessage` variable to store the last received server message
- show connect status in TUI
- use EnterAltScreen instead of ClearScreen
2024-11-10 09:34:55 +01:00
cmd/client feat: reconnect on disconnect (add status to TUI) 2024-11-10 09:34:55 +01:00
internal feat: reconnect on disconnect (add status to TUI) 2024-11-10 09:34:55 +01:00
pkg/models feat: reconnect on disconnect (add status to TUI) 2024-11-10 09:34:55 +01:00
.gitignore Genesis 2024-10-23 17:43:44 +02:00
.renovaterc.json chore: add .renovaterc.json 2024-10-24 07:27:39 +02:00
ChronoTomato.go doc: remove outdated TODO comments 2024-10-29 18:11:06 +01:00
go.mod fix: update module git.smsvc.net/pomodoro/gotomato to v0.0.8 2024-11-05 02:01:33 +00:00
go.sum fix: update module git.smsvc.net/pomodoro/gotomato to v0.0.8 2024-11-05 02:01:33 +00:00
README.md feat: update module path 2024-10-23 21:21:23 +02:00

ChronoTomato

A GoTomato command line client written in Go

Installation

go install git.smsvc.net/pomodoro/ChronoTomato@latest

Configuration

ChronoTomato can be configured via CLI parameters or a config file.

The configuration is loaded from ~/config/ChronoTomato.yml, here is an example:

url: ws://localhost:8080/ws
password: ""
config:
  work: 1500
  shortbreak: 300
  longbreak: 600
  sessions: 4

The url must be passed either via parameter or config file.
The password and the config are optional, the later can only be set via the configuration file.