Versions in this module Expand all Collapse all v1 v1.0.2 Jun 3, 2026 v1.0.1 Jun 3, 2026 Changes in this version + func ParseQuickAdd(raw string) (domain.CreateTaskInput, error) + func ResolveHabit(ref string, habits []domain.Habit) (domain.Habit, error) + func ResolveProject(ref string, projects []domain.Project) (domain.Project, error) + type AuthApp struct + ConfigStore *config.Store + Service AuthService + ServiceForRegion AuthServiceFactory + func (a AuthApp) Login(ctx context.Context, in LoginInput) error + func (a AuthApp) Logout(ctx context.Context) error + func (a AuthApp) Status(ctx context.Context) (auth.Status, error) + type AuthService interface + Login func(context.Context, auth.LoginInput) (auth.Token, error) + Logout func(context.Context) error + Status func(context.Context) (auth.Status, error) + type AuthServiceFactory func(region string) (AuthService, error) + type ConfigApp struct + Store *config.Store + func (a ConfigApp) Get(ctx context.Context, key string) (string, error) + func (a ConfigApp) List(ctx context.Context) (string, error) + func (a ConfigApp) Set(ctx context.Context, key, value string) error + type FocusAPI interface + GetFocus func(context.Context, string, string, int) (domain.Focus, error) + ListFocus func(context.Context, string, time.Time, time.Time, int) ([]domain.Focus, error) + ListProjects func(context.Context, string) ([]domain.Project, error) + type FocusApp struct + Auth ProjectTokenSource + Client FocusAPI + Now func() time.Time + func (a FocusApp) Get(ctx context.Context, focusID string, focusType int) (domain.Focus, error) + func (a FocusApp) List(ctx context.Context, in ListFocusInput) ([]domain.Focus, map[string]string, error) + func (a FocusApp) ListProjects(ctx context.Context) ([]domain.Project, error) + type HabitAPI interface + CheckinHabit func(context.Context, string, string, int, float64, float64) error + CreateHabit func(context.Context, string, domain.CreateHabitPayload) (domain.Habit, error) + GetHabit func(context.Context, string, string) (domain.Habit, error) + ListCheckins func(context.Context, string, []string, int, int) ([]domain.HabitCheckin, error) + ListHabits func(context.Context, string) ([]domain.Habit, error) + UpdateHabit func(context.Context, string, string, domain.CreateHabitPayload) (domain.Habit, error) + type HabitApp struct + Auth ProjectTokenSource + Client HabitAPI + func (a HabitApp) Add(ctx context.Context, in domain.CreateHabitInput) (domain.Habit, error) + func (a HabitApp) Archive(ctx context.Context, ref string) (domain.Habit, error) + func (a HabitApp) Checkin(ctx context.Context, ref string, value float64) error + func (a HabitApp) Get(ctx context.Context, ref string) (domain.Habit, error) + func (a HabitApp) List(ctx context.Context) ([]domain.Habit, error) + func (a HabitApp) Log(ctx context.Context, ref string) ([]domain.HabitCheckin, error) + func (a HabitApp) Update(ctx context.Context, in domain.UpdateHabitInput) (domain.Habit, error) + type ListFocusInput struct + From string + To string + Type int + type ListTasksInput struct + From string + Overdue bool + Priorities []domain.Priority + Project string + Statuses []domain.TaskStatus + Tags []string + To string + Today bool + type LoginInput struct + ClientID string + ClientSecret string + RedirectURL string + Region string + type ProjectAPI interface + CreateProject func(context.Context, string, string, string) (domain.Project, error) + DeleteProject func(context.Context, string, string) error + ListProjects func(context.Context, string) ([]domain.Project, error) + UpdateProject func(context.Context, string, string, string, string) (domain.Project, error) + type ProjectApp struct + Auth ProjectTokenSource + Client ProjectAPI + func (a ProjectApp) Create(ctx context.Context, name, kind string) (domain.Project, error) + func (a ProjectApp) Get(ctx context.Context, ref string) (domain.Project, error) + func (a ProjectApp) List(ctx context.Context) ([]domain.Project, error) + func (a ProjectApp) Remove(ctx context.Context, ref string) error + func (a ProjectApp) Update(ctx context.Context, ref, name, kind string) (domain.Project, error) + type ProjectTokenSource interface + AccessToken func(context.Context) (string, error) + type QuickAddApp struct + ConfigStore *config.Store + TaskApp *TaskApp + func (a QuickAddApp) Add(ctx context.Context, raw string) (domain.Task, error) + type TaskAPI interface + CompleteTask func(context.Context, string, string, string) error + CreateTask func(context.Context, string, domain.CreateTaskPayload) (domain.Task, error) + DeleteTask func(context.Context, string, string, string) error + FilterTasks func(context.Context, string, domain.TaskFilter) ([]domain.Task, error) + GetProjectData func(context.Context, string, string) (domain.Project, []domain.Task, error) + ListProjects func(context.Context, string) ([]domain.Project, error) + MoveTask func(context.Context, string, string, string, string) error + UpdateTask func(context.Context, string, domain.Task) (domain.Task, error) + type TaskApp struct + Auth ProjectTokenSource + Client TaskAPI + ConfigStore *config.Store + Now func() time.Time + func (a TaskApp) Add(ctx context.Context, in domain.CreateTaskInput) (domain.Task, error) + func (a TaskApp) Done(ctx context.Context, ref string, projectRef string) error + func (a TaskApp) Get(ctx context.Context, ref string, projectRef string) (domain.Task, map[string]string, error) + func (a TaskApp) List(ctx context.Context, in ListTasksInput) ([]domain.Task, map[string]string, error) + func (a TaskApp) ListProjects(ctx context.Context) ([]domain.Project, error) + func (a TaskApp) Move(ctx context.Context, in domain.MoveTaskInput) error + func (a TaskApp) Remove(ctx context.Context, ref string, projectRef string) error + func (a TaskApp) Reopen(ctx context.Context, ref string, projectRef string) error + func (a TaskApp) Today(ctx context.Context) ([]domain.Task, map[string]string, error) + func (a TaskApp) Update(ctx context.Context, in domain.UpdateTaskInput) (domain.Task, error)