Documentation
¶
Index ¶
- Variables
- func ComputeFields(t *types.Task)
- func FuzzySelectProject(projects []types.Project, query string) (types.Project, error)
- func FuzzySelectTask(tasks []types.Task, projectColor project.Color, query string) (types.Task, error)
- func GetProjectDescription(project types.Project) string
- func GetTaskDescription(task types.Task, projectColor project.Color) string
- 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 ¶
View Source
var DefaultDuration = 1 * time.Hour
Functions ¶
func ComputeFields ¶ added in v0.0.6
ComputeFields populates all computed fields on a task before output.
func FuzzySelectProject ¶
func FuzzySelectTask ¶
func GetProjectDescription ¶
func GetTaskDescription ¶
func LoadClient ¶
func ParseFlexibleTime ¶ added in v0.0.6
ParseFlexibleTime parses ISO 8601 timestamps, accepting both +00:00 and +0000 offset formats.
func ParseTimeExpression ¶
func ParseTimeExpression(expr string) (*naturaltime.Range, error)
func PrintProjectsSimple ¶ added in v0.0.6
PrintProjectsSimple writes tab-separated project data to stdout for non-interactive use.
func PrintTasksSimple ¶ added in v0.0.6
PrintTasksSimple writes tab-separated task data to stdout for non-interactive use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.