Install: go get github.com/CGA1123/tomato
There are a couple of subcommands:
help
: prints usage informationstart
: starts a 25min tomato timerstop
: stops the currently running timerremaining
: returns how many minutes there are left on the timerrunning
: returns exit code33
if the timer is not running,0
otherwiseserver
: starts the tomato serverkill
: kills the tomato serverup
: returns exit code33
if the tomato server is not up,0
otherwise
tomato server
starts an RPC server over unix
sockets using
/tmp/tomato.sock
, most other tomato
commands then make requests to this
server.
Server logs are outputted to /tmp/tomato.log
, logs are truncated across
restarts.
You can use tomato running
and check the exit code as a means to quickly
check if a tomato is running, and use that information to render something in
your editor or command line.