package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 28, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lifecycle expands an offset-based task template into
concrete, dated tasks for one event.
ParseOffset converts "-30d" / "-2w" into a duration in days.
Expand filters tasks by event mode and resolves due dates,
sorted by deadline (earliest first).
type Template struct {
Tasks []TemplateTask `yaml:"tasks"`
}
type TemplateTask struct {
Title string `yaml:"title"`
Due string `yaml:"due"`
Labels []string `yaml:"labels"`
Modes []event.Mode `yaml:"modes"`
Body string `yaml:"body"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.