ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveTaskPlaceholder = "{{task}}"
)

Variables

View Source
var (
	WarningStyle = lipgloss.NewStyle().
		Foreground(lipgloss.Color(warningColor))
)

Functions

func GenerateData added in v0.2.0

func GenerateData(db *sql.DB, numDays, numTasks uint8) error

func InitialModel

func InitialModel(db *sql.DB) model

func RenderReport

func RenderReport(db *sql.DB, writer io.Writer, plain bool, period string, agg bool, interactive bool)

func RenderStats

func RenderStats(db *sql.DB, writer io.Writer, plain bool, period string, interactive bool)

func RenderTaskLog

func RenderTaskLog(db *sql.DB, writer io.Writer, plain bool, period string, interactive bool)

func RenderUI

func RenderUI(db *sql.DB)

func RightPadTrim

func RightPadTrim(s string, length int, dots bool) string

func ShowActiveTask

func ShowActiveTask(db *sql.DB, writer io.Writer, template string)

func Trim

func Trim(s string, length int) string

Types

type HideHelpMsg

type HideHelpMsg struct{}

Jump to

Keyboard shortcuts

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