Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectAllTags ¶
func CollectAllTags(projectIDs []string, listTasks func(projectID string) ([]types.Task, error)) []string
CollectAllTags fetches tags from all projects concurrently with a concurrency limit. listTasks is a function that fetches tasks for a project ID.
func RunConfirm ¶
RunConfirm displays a styled confirmation prompt.
Types ¶
type ProjectFormResult ¶
ProjectFormResult holds the values collected from the project form.
func RunProjectCreateForm ¶
func RunProjectCreateForm(t theme.Theme, defaults ProjectFormResult) (*ProjectFormResult, error)
RunProjectCreateForm displays an interactive project creation form.
type TaskFormResult ¶
type TaskFormResult struct {
Title string
Content string
Priority task.Priority
Date string
Tags string
Project string // selected project ID
NewProjectName string // set when user chose to create a new project
}
TaskFormResult holds the values collected from the task creation form.
func RunTaskCreateForm ¶
func RunTaskCreateForm(t theme.Theme, defaults TaskFormResult, projects []types.Project, knownTags []string) (*TaskFormResult, error)
RunTaskCreateForm displays an interactive task creation form using Huh. projects is optional — when provided, a project selector is shown. knownTags is optional — when provided, a multi-select for tags is shown.
func RunTaskUpdateForm ¶
func RunTaskUpdateForm(t theme.Theme, defaults TaskFormResult, knownTags []string) (*TaskFormResult, error)
RunTaskUpdateForm displays an interactive task update form.