Documentation
¶
Index ¶
- Variables
- func ComputeFields(t *types.Task)
- func LoadClient() (api.Client, error)
- func ParseFlexibleTime(value string) (time.Time, error)
- func ParseTimeExpression(expr string) (*naturaltime.Range, error)
- func PrintProjectsSimple(projects []types.Project)
- func PrintTasksSimple(tasks []types.Task)
- func TruncateToDate(t time.Time) time.Time
Constants ¶
This section is empty.
Variables ¶
var DefaultDuration = 1 * time.Hour
Functions ¶
func ComputeFields ¶ added in v0.0.6
ComputeFields populates all computed fields on a task before output.
func LoadClient ¶
func ParseFlexibleTime ¶ added in v0.0.6
ParseFlexibleTime parses time values in multiple formats: - ISO 8601 with timezone (e.g. 2025-02-18T15:04:05+02:00) - ISO 8601 with compact offset (e.g. 2025-02-18T15:04:05+0200) - Plain date (e.g. 2025-02-18); treated as midnight local time - Natural language (e.g. "tomorrow", "next friday 5pm"); returns start of the parsed range
func ParseTimeExpression ¶
func ParseTimeExpression(expr string) (*naturaltime.Range, error)
func PrintProjectsSimple ¶ added in v0.0.6
PrintProjectsSimple writes styled project data to stdout for non-interactive use. When piped (non-TTY), falls back to tab-separated format for scripting.
func PrintTasksSimple ¶ added in v0.0.6
PrintTasksSimple writes styled task data to stdout for non-interactive use. When piped (non-TTY), falls back to tab-separated format for scripting.
Types ¶
This section is empty.