pomato

package module
v0.0.0-...-0ed57df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

pomato

A small command line Pomodoro tool.

Documentation

Index

Constants

View Source
const (
	DefaultPomodoroTime     = 25
	DefaultBreakTime        = 5
	DefaultLongBreakTime    = 15
	DefaultLongBreakEach    = 4
	DefaultAutoStartNext    = false
	DefaultShowNotification = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(p *Pomato)

func WithAutoStartNext

func WithAutoStartNext(auto bool) Option

func WithBreakTime

func WithBreakTime(d time.Duration) Option

func WithLongBreakEach

func WithLongBreakEach(rounds int) Option

func WithLongBreakTime

func WithLongBreakTime(d time.Duration) Option

func WithPomodoroTime

func WithPomodoroTime(d time.Duration) Option

func WithShowNotification

func WithShowNotification(show bool) Option

type Pomato

type Pomato struct {
	// contains filtered or unexported fields
}

func NewPomato

func NewPomato(options ...Option) *Pomato

func (*Pomato) Run

func (p *Pomato) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL