Documentation
¶
Index ¶
- func ColorsEnabled() bool
- func PrintLists(w io.Writer, lists []*reminder.List, format OutputFormat, showCount bool)
- func PrintReminderDetail(w io.Writer, r *reminder.Reminder, format OutputFormat)
- func PrintReminders(w io.Writer, reminders []*reminder.Reminder, format OutputFormat)
- type OutputFormat
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.