Versions in this module Expand all Collapse all v0 v0.2.1 Dec 7, 2024 v0.2.0 Dec 7, 2024 Changes in this version + type Cli struct + Batch bool + Csv bool + Formatter Formatter + In *In + Out *Out + func New(formatter Formatter, out, err io.Writer) *Cli + type CsvWriter struct + func (w *CsvWriter) Flush() + func (w *CsvWriter) Write(record ...string) error + type Formatter interface + FormatDurationms func(d time.Duration) string + FormatDurations func(d time.Duration) string + FormatInt func(i int) string + FormatPercentage func(p float64) string + FormatTime func(t time.Time) string + func DefaultFormatter() Formatter + type In struct + func (i *In) ParseDurationms(in string) (time.Duration, error) + func (i *In) ParseDurations(in string) (time.Duration, error) + func (i *In) ParseInt(in string) (int, error) + func (i *In) ParseTime(in string) (time.Time, error) + type Out struct + func (o *Out) Errorf(format string, a ...any) + func (o *Out) FailAndExit(err error) + func (o *Out) FailAndExitf(format string, a ...any) + func (o *Out) NewCsvWriter(comma rune) *CsvWriter + func (o *Out) NewTabwriter() *TabWriter + func (o *Out) Printf(format string, a ...any) + func (o *Out) Println(a ...any) + type TabWriter struct + func (w *TabWriter) Flush() + func (w *TabWriter) Write(record ...string) error