Documentation
¶
Index ¶
- Constants
- func AppendTodoLine(body string, text string) string
- func ComputeStatus(total, checked int) string
- func CountPending(plansDir string) (int, error)
- func FormatTodoLine(text string, checked bool) string
- func ReadFile(path string) (Meta, Sections, []byte, error)
- func RemoveTodoLine(body string, sha string) (string, bool, error)
- func ReplaceTodoChecked(body string, sha string) (string, bool, error)
- func ResolvePath(plansDir, name string) (string, error)
- func SkeletonBody(goal string) []byte
- func StatusFromItems(items []TodoItem) string
- func TodoSHA(text string) string
- func WriteDocument(meta Meta, body []byte) ([]byte, error)
- func WriteFile(path string, content []byte) error
- type GitMeta
- type Meta
- type Sections
- type TodoItem
- type TodoSection
Constants ¶
View Source
const ( StatusNotBuilt = "not_built" StatusPartiallyBuilt = "partially_built" StatusBuilt = "built" )
Variables ¶
This section is empty.
Functions ¶
func AppendTodoLine ¶
func ComputeStatus ¶
func CountPending ¶
func FormatTodoLine ¶
func ResolvePath ¶
func SkeletonBody ¶
func StatusFromItems ¶
Types ¶
type GitMeta ¶
func GitMetaFromRoot ¶
type Meta ¶
type Sections ¶
type Sections struct {
Goal string
Context string
Design string
Todo TodoSection
}
func ParseSections ¶
type TodoItem ¶
func ParseChecklist ¶
Click to show internal directories.
Click to hide internal directories.