utils

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WarnStyle is a bold yellow hue
	WarnStyle = color.New(color.FgHiYellow, color.Bold)
	// ErrorStyle is a bold red hue
	ErrorStyle = color.New(color.FgHiRed, color.Bold)
	// InfoStyle is a bold green hue
	InfoStyle = color.New(color.FgHiGreen, color.Bold)
	// PrintStyle is a white hue
	PrintStyle = color.New(color.FgWhite)
)
View Source
var (
	// Warn is a printf function with WarnStyle
	Warn = WarnStyle.PrintfFunc()
	// Error is a sprintf function with ErrorStyle
	Error = ErrorStyle.SprintfFunc()
	// Info is a printf function with InfoStyle
	Info = InfoStyle.PrintfFunc()
	// Print is a printf function with PrintStyle
	Print = PrintStyle.PrintfFunc()
)

Functions

func ErrorP

func ErrorP(format string, a ...interface{})

ErrorP prints errors with a format and interface like in printf and exits the program.

func OpenBrowser added in v0.11.0

func OpenBrowser(url string) error

OpenBrowser opens the default browser with the given URL

func Sort

func Sort(tasks []*tasks.Task, sortBy string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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