A pomodoro timer written in Go, right in your terminal.
Go Tempo is written with Bubbletea and Lipgloss.
There is compiled binaries for Windows and Linux in the releases, but you can also install it using Go :
go install github.com/Natouche68/go-tempo@latest
To launch go-tempo, run :
go-tempo
Use the space bar to pause and resume the timer. Type r
to reset the timer. To quit, simply type q
or ctrl+c
.
When development, you can simply run :
go run .
When you want to build the project, run :
# For Windows :
GOOS=windows go build -o bin/go-tempo.exe main.go
# For Linux :
GOOS=linux go build -o bin/go-tempo main.go
Don't forget to build to the bin directory, so the compiled binaries are not commited to Github.
Follow these instructions to publish Go Tempo to pkg.go.dev, so others can install it using go install
.
go mod tidy
# After publishing the code to Github, and after creating a new release :
GOPROXY=proxy.golang.org go list -m github.com/Natouche68/go-tempo@version
Replace
version
in the last command with the version you want to publish.