cli

package
v0.0.2-0...-9a6aa9e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateData map[string]interface{}
View Source
var Templates = template.Must(template.New("Help").Parse(`
{{define "NameVer"}}lyco {{.Version}}{{end}}

{{define "OneLine"}}A terminal user interface for pomodoro technique🍅{{end}}

{{define "Header"}}{{template "NameVer" .}}

{{template "OneLine"}}
{{end}}
`))

Functions

func WriteHelp

func WriteHelp(p *flags.Parser, w io.Writer)

Types

type Lyco

type Lyco struct {
	PomodoroDuration    string `long:"duration" short:"d" description:"🍅 Pomdoro timer's duration (eg. 25m)"`
	ShortBreaksDuration string `long:"short-breaks" description:"☕ Short breaks duration (eg. 5m)"`
	LongBreaksDuration  string `long:"long-breaks" description:"☕ Long breaks duration (eg. 15m)"`
	Help                bool   `long:"help" short:"h" optional:"true" optional-value:"true" description:"Show this help message."`
	Debug               bool   `long:"debug" hidden:"true" optional:"true" optional-value:"true" description:"Enable lyco 🐛debugging."`
}

Jump to

Keyboard shortcuts

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