Documentation
¶
Index ¶
- type AreaRepo
- func (r *AreaRepo) Create(ctx context.Context, area *domain.Area) error
- func (r *AreaRepo) Delete(ctx context.Context, id string) error
- func (r *AreaRepo) Get(ctx context.Context, id string) (*domain.Area, error)
- func (r *AreaRepo) GetBySlug(ctx context.Context, slug string) (*domain.Area, error)
- func (r *AreaRepo) List(ctx context.Context) ([]*domain.Area, error)
- func (r *AreaRepo) Update(ctx context.Context, area *domain.Area) error
- type Parser
- func (p *Parser) ParseArea(r io.Reader) (*domain.Area, error)
- func (p *Parser) ParseAreaFromFile(path string) (*domain.Area, error)
- func (p *Parser) ParseProject(r io.Reader) (*domain.Project, error)
- func (p *Parser) ParseProjectFromFile(path string) (*domain.Project, error)
- func (p *Parser) ParseTask(r io.Reader) (*domain.Task, error)
- func (p *Parser) ParseTaskFromFile(path string) (*domain.Task, error)
- type ProjectRepo
- func (r *ProjectRepo) Create(ctx context.Context, project *domain.Project) error
- func (r *ProjectRepo) Delete(ctx context.Context, id string) error
- func (r *ProjectRepo) Get(ctx context.Context, id string) (*domain.Project, error)
- func (r *ProjectRepo) GetBySlug(ctx context.Context, areaSlug, projectSlug string) (*domain.Project, error)
- func (r *ProjectRepo) List(ctx context.Context, areaID string) ([]*domain.Project, error)
- func (r *ProjectRepo) ListAll(ctx context.Context) ([]*domain.Project, error)
- func (r *ProjectRepo) Update(ctx context.Context, project *domain.Project) error
- type Store
- type TaskRepo
- func (r *TaskRepo) Create(ctx context.Context, task *domain.Task) error
- func (r *TaskRepo) Delete(ctx context.Context, id string) error
- func (r *TaskRepo) Get(ctx context.Context, id string) (*domain.Task, error)
- func (r *TaskRepo) GetBySlug(ctx context.Context, areaSlug, projectSlug, taskSlug string) (*domain.Task, error)
- func (r *TaskRepo) List(ctx context.Context, projectID string) ([]*domain.Task, error)
- func (r *TaskRepo) ListAll(ctx context.Context) ([]*domain.Task, error)
- func (r *TaskRepo) ListByArea(ctx context.Context, areaID string) ([]*domain.Task, error)
- func (r *TaskRepo) Update(ctx context.Context, task *domain.Task) error
- type Writer
- func (w *Writer) MarshalArea(area *domain.Area) ([]byte, error)
- func (w *Writer) MarshalProject(project *domain.Project) ([]byte, error)
- func (w *Writer) MarshalTask(task *domain.Task) ([]byte, error)
- func (w *Writer) WriteArea(out io.Writer, area *domain.Area) error
- func (w *Writer) WriteAreaToFile(path string, area *domain.Area) error
- func (w *Writer) WriteProject(out io.Writer, project *domain.Project) error
- func (w *Writer) WriteProjectToFile(path string, project *domain.Project) error
- func (w *Writer) WriteTask(out io.Writer, task *domain.Task) error
- func (w *Writer) WriteTaskToFile(path string, task *domain.Task) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AreaRepo ¶
type AreaRepo struct {
// contains filtered or unexported fields
}
AreaRepo implements storage.AreaRepository
type Parser ¶
type Parser struct{}
Parser handles reading and writing markdown files with YAML frontmatter
func (*Parser) ParseAreaFromFile ¶
ParseAreaFromFile reads a file and parses it into an Area
func (*Parser) ParseProject ¶
ParseProject reads a markdown file and parses it into a Project
func (*Parser) ParseProjectFromFile ¶
ParseProjectFromFile reads a file and parses it into a Project
type ProjectRepo ¶
type ProjectRepo struct {
// contains filtered or unexported fields
}
ProjectRepo implements storage.ProjectRepository
func (*ProjectRepo) Delete ¶
func (r *ProjectRepo) Delete(ctx context.Context, id string) error
Delete removes a project by ID
func (*ProjectRepo) GetBySlug ¶
func (r *ProjectRepo) GetBySlug(ctx context.Context, areaSlug, projectSlug string) (*domain.Project, error)
GetBySlug retrieves a project by its slug within an area
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides file-based storage for all domain objects
func (*Store) Initialize ¶
Initialize creates the directory structure
func (*Store) Projects ¶
func (s *Store) Projects() *ProjectRepo
NewProjectRepo creates a new ProjectRepo
func (*Store) SetAutoCommit ¶
SetAutoCommit enables or disables automatic git commits
type TaskRepo ¶
type TaskRepo struct {
// contains filtered or unexported fields
}
TaskRepo implements storage.TaskRepository
func (*TaskRepo) GetBySlug ¶
func (r *TaskRepo) GetBySlug(ctx context.Context, areaSlug, projectSlug, taskSlug string) (*domain.Task, error)
GetBySlug retrieves a task by its slug within a project
func (*TaskRepo) ListByArea ¶
ListByArea returns all tasks for an area
type Writer ¶
type Writer struct{}
Writer handles writing domain objects to markdown files
func (*Writer) MarshalArea ¶
MarshalArea returns the markdown representation of an Area
func (*Writer) MarshalProject ¶
MarshalProject returns the markdown representation of a Project
func (*Writer) MarshalTask ¶
MarshalTask returns the markdown representation of a Task
func (*Writer) WriteAreaToFile ¶
WriteAreaToFile writes an Area to a file
func (*Writer) WriteProject ¶
WriteProject writes a Project to a writer as markdown with YAML frontmatter
func (*Writer) WriteProjectToFile ¶
WriteProjectToFile writes a Project to a file