Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDuration = "25m" Prefix = "🍅" PrefixWarn = "💀" DB = "/tmp/pomo" )
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: "pomo", Summary: "prints countdown timer to stdout", Description: "Simple tool to follow the pomodoro method of time boxing.", Version: "v0.1", License: "GPL-3.0", Source: "https://github.com/murtaza-u/pomo", Issues: "https://github.com/murtaza-u/pomo/issues", Copyright: "(c) Murtaza Udaipurwala <murtaza@murtazau.xyz> (murtazau.xyz)", Site: "https://murtazau.xyz", Commands: []*Z.Cmd{help.Cmd, startCmd, stopCmd, addCmd}, Call: func(caller *Z.Cmd, args ...string) error { s := new(State) err := s.read() if err != nil { return nil } prefix := Prefix if !s.isRunning() { prefix = PrefixWarn } fmt.Printf("%s%s\n", prefix, s.left()) return nil }, }
View Source
var ErrAlreadyRunning = errors.New("session already running")
View Source
var ErrMissingArgs = errors.New("missing argument")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.