Documentation ¶
Index ¶
- func CheckFulfillment(content []byte, check string) bool
- func HasNoteLinks(content []byte) bool
- func ParseFrontMatter(content []byte) (title string, tags []string)
- type Parser
- type TagHandler
- type Task
- type TaskHandler
- func (th *TaskHandler) AddTask(status, content string)
- func (th *TaskHandler) ParseTask(content string)
- func (th *TaskHandler) PrintTasks(sortType, sortOrder string)
- func (th *TaskHandler) ShowTasksTable()
- func (th *TaskHandler) SortTasksByID(order string) []Task
- func (th *TaskHandler) SortTasksByStatus(order string) []Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFulfillment ¶
func HasNoteLinks ¶
func ParseFrontMatter ¶
Types ¶
type Parser ¶
type Parser struct { TaskHandler *TaskHandler TagHandler *TagHandler DirPath string }
func (*Parser) PrintSortedTagCounts ¶
func (*Parser) PrintTagCounts ¶
func (p *Parser) PrintTagCounts()
func (*Parser) PrintTasks ¶
func (*Parser) ShowTagTable ¶
func (p *Parser) ShowTagTable()
func (*Parser) ShowTasksTable ¶
func (p *Parser) ShowTasksTable()
type TagHandler ¶
TagHandler handles the logic related to tags.
func NewTagHandler ¶
func NewTagHandler() *TagHandler
NewTagHandler creates a new instance of TagHandler.
func (*TagHandler) ParseTag ¶
func (th *TagHandler) ParseTag(tag string)
ParseTag parses and counts a single tag.
func (*TagHandler) PrintSortedTagCounts ¶
func (th *TagHandler) PrintSortedTagCounts(order string)
func (*TagHandler) PrintTagCounts ¶
func (th *TagHandler) PrintTagCounts()
PrintTagCounts prints the sorted list of tags and their counts.
func (*TagHandler) ShowTagTable ¶
func (th *TagHandler) ShowTagTable()
func (*TagHandler) SortTagCounts ¶
func (th *TagHandler) SortTagCounts(order string)
SortTagCounts sorts the tags by their counts.
type TaskHandler ¶
func NewTaskHandler ¶
func NewTaskHandler() *TaskHandler
func (*TaskHandler) AddTask ¶
func (th *TaskHandler) AddTask(status, content string)
func (*TaskHandler) ParseTask ¶
func (th *TaskHandler) ParseTask(content string)
func (*TaskHandler) PrintTasks ¶
func (th *TaskHandler) PrintTasks(sortType, sortOrder string)
PrintTasks is a public method that prints tasks sorted by the specified type and order.
func (*TaskHandler) ShowTasksTable ¶
func (th *TaskHandler) ShowTasksTable()
func (*TaskHandler) SortTasksByID ¶
func (th *TaskHandler) SortTasksByID(order string) []Task
func (*TaskHandler) SortTasksByStatus ¶
func (th *TaskHandler) SortTasksByStatus(order string) []Task
sortTasksByStatus is a private method that sorts tasks by status.
Click to show internal directories.
Click to hide internal directories.