Documentation
¶
Index ¶
- Constants
- Variables
- func ParseIdeaContent(text string) (string, []string, string)
- type AddIdeaInput
- type AddTaskInput
- type AgentConfig
- type ColumnDef
- type Config
- type Idea
- type IdeaListFilter
- type IdeaMatchConflictError
- type IdeaMeta
- type IdeaSelectorFilter
- type ListFilter
- type MatchConflictError
- type Project
- type SelectorFilter
- type Task
- type TaskMeta
- type Workspace
- func (w *Workspace) AddIdea(in AddIdeaInput) (*Idea, error)
- func (w *Workspace) AddIdeaNote(idea *Idea, note string) (*Idea, error)
- func (w *Workspace) AddNote(prefix string, note string) (*Task, error)
- func (w *Workspace) AddTask(in AddTaskInput) (*Task, error)
- func (w *Workspace) Config() Config
- func (w *Workspace) CreateProject(name string) (*Project, error)
- func (w *Workspace) DeleteIdea(idea *Idea) error
- func (w *Workspace) GetIdeaBySelectorFiltered(selector string, filter IdeaSelectorFilter) (*Idea, error)
- func (w *Workspace) GetTaskByPrefix(prefix string) (*Task, error)
- func (w *Workspace) GetTaskBySelector(selector string, project string) (*Task, error)
- func (w *Workspace) GetTaskBySelectorFiltered(selector string, filter SelectorFilter) (*Task, error)
- func (w *Workspace) Init(defaultProject string) error
- func (w *Workspace) ListIdeas(f IdeaListFilter) ([]Idea, error)
- func (w *Workspace) ListProjects() ([]Project, error)
- func (w *Workspace) ListTasks(f ListFilter) ([]Task, error)
- func (w *Workspace) MoveTask(prefix string, toColumnID string) (*Task, error)
- func (w *Workspace) RenderAgenda(project string, days int, openOnly bool, groupBy string, showTotals bool, ...) (string, error)
- func (w *Workspace) RenderBoard(project string, ascii bool, format string, openOnly bool) (string, error)
- func (w *Workspace) RenderToday(project string, openOnly bool, groupBy string, showTotals bool, format string) (string, error)
- func (w *Workspace) ResolveIdeas(selector string, filter IdeaSelectorFilter) ([]Idea, error)
- func (w *Workspace) ResolveTasks(selector string, filter SelectorFilter) ([]Task, error)
- func (w *Workspace) SaveConfig(cfg Config) error
Constants ¶
View Source
const ( IdeaScopeRoot = "root" IdeaScopeProject = "project" IdeaScopeAll = "all" )
View Source
const ( MatchAuto = "auto" MatchExact = "exact" MatchPrefix = "prefix" MatchContains = "contains" MatchSearch = "search" )
Variables ¶
Functions ¶
Types ¶
type AddIdeaInput ¶ added in v0.2.0
type AddTaskInput ¶
type AgentConfig ¶
type AgentConfig struct {
RequireExplicit bool `json:"require_explicit"`
DefaultProject string `json:"default_project"`
DefaultView string `json:"default_view"` // today|week
WeekDays int `json:"week_days"`
OpenOnly bool `json:"open_only"`
SummaryGroup string `json:"summary_group"` // none|project|column
SummaryTotals bool `json:"summary_totals"` // show per-group counts
}
type Config ¶
type Config struct {
Schema int `json:"schema"`
Columns []ColumnDef `json:"columns"`
Agent *AgentConfig `json:"agent,omitempty"`
}
type Idea ¶ added in v0.2.0
func (*Idea) RenderHuman ¶ added in v0.2.0
type IdeaListFilter ¶ added in v0.2.0
type IdeaMatchConflictError ¶ added in v0.2.0
IdeaMatchConflictError provides details when a selector matches multiple ideas. It still satisfies errors.Is(err, ErrConflict).
func (*IdeaMatchConflictError) Error ¶ added in v0.2.0
func (e *IdeaMatchConflictError) Error() string
func (*IdeaMatchConflictError) Is ¶ added in v0.2.0
func (e *IdeaMatchConflictError) Is(target error) bool
type IdeaSelectorFilter ¶ added in v0.2.0
type ListFilter ¶
type MatchConflictError ¶ added in v0.1.2
MatchConflictError provides details when a selector matches multiple tasks. It still satisfies errors.Is(err, ErrConflict).
func (*MatchConflictError) Error ¶ added in v0.1.2
func (e *MatchConflictError) Error() string
func (*MatchConflictError) Is ¶ added in v0.1.2
func (e *MatchConflictError) Is(target error) bool
type SelectorFilter ¶ added in v0.1.3
type TaskMeta ¶
type TaskMeta struct {
Schema int `yaml:"schema" json:"schema"`
ID string `yaml:"id" json:"id"`
Title string `yaml:"title" json:"title"`
Status string `yaml:"status" json:"status"`
Project string `yaml:"project" json:"project"`
Column string `yaml:"column" json:"column"`
Priority string `yaml:"priority" json:"priority"`
Tags []string `yaml:"tags" json:"tags"`
Due string `yaml:"due" json:"due"`
CreatedAt *time.Time `yaml:"created_at" json:"created_at"`
UpdatedAt *time.Time `yaml:"updated_at" json:"updated_at"`
CompletedAt *time.Time `yaml:"completed_at" json:"completed_at"`
ArchivedAt *time.Time `yaml:"archived_at" json:"archived_at"`
}
type Workspace ¶
type Workspace struct {
Root string
// contains filtered or unexported fields
}
func (*Workspace) AddIdea ¶ added in v0.2.0
func (w *Workspace) AddIdea(in AddIdeaInput) (*Idea, error)
func (*Workspace) AddIdeaNote ¶ added in v0.2.0
func (*Workspace) DeleteIdea ¶ added in v0.2.0
func (*Workspace) GetIdeaBySelectorFiltered ¶ added in v0.2.0
func (w *Workspace) GetIdeaBySelectorFiltered(selector string, filter IdeaSelectorFilter) (*Idea, error)
func (*Workspace) GetTaskByPrefix ¶
func (*Workspace) GetTaskBySelector ¶ added in v0.1.2
func (*Workspace) GetTaskBySelectorFiltered ¶ added in v0.1.3
func (w *Workspace) GetTaskBySelectorFiltered(selector string, filter SelectorFilter) (*Task, error)
func (*Workspace) ListIdeas ¶ added in v0.2.0
func (w *Workspace) ListIdeas(f IdeaListFilter) ([]Idea, error)
func (*Workspace) ListProjects ¶
func (*Workspace) RenderAgenda ¶
func (*Workspace) RenderBoard ¶
func (*Workspace) RenderToday ¶
func (*Workspace) ResolveIdeas ¶ added in v0.2.0
func (w *Workspace) ResolveIdeas(selector string, filter IdeaSelectorFilter) ([]Idea, error)
func (*Workspace) ResolveTasks ¶ added in v0.1.3
func (w *Workspace) ResolveTasks(selector string, filter SelectorFilter) ([]Task, error)
func (*Workspace) SaveConfig ¶
Click to show internal directories.
Click to hide internal directories.