ui

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorsEnabled

func ColorsEnabled() bool

ColorsEnabled returns true if color output should be used.

func PrintLists

func PrintLists(w io.Writer, lists []*reminder.List, format OutputFormat, showCount bool)

PrintLists outputs reminder lists in the specified format.

func PrintReminderDetail

func PrintReminderDetail(w io.Writer, r *reminder.Reminder, format OutputFormat)

PrintReminderDetail prints a single reminder with all details.

func PrintReminders

func PrintReminders(w io.Writer, reminders []*reminder.Reminder, format OutputFormat)

PrintReminders outputs reminders in the specified format.

Types

type OutputFormat

type OutputFormat string

OutputFormat represents the output format type.

const (
	FormatTable OutputFormat = "table"
	FormatJSON  OutputFormat = "json"
	FormatPlain OutputFormat = "plain"
)

func ParseOutputFormat

func ParseOutputFormat(s string) OutputFormat

ParseOutputFormat parses an output format string.

Jump to

Keyboard shortcuts

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