Documentation
¶
Overview ¶
Package render produces CLI output: human, --plain, and --json.
--plain is stable, tab/line-oriented text for scripts; --json is the structured Task map shape. The default is friendlier human output. North is agent-driven, so machine-readable output is first-class.
Index ¶
- func Board(counts []tasks.StatusCount, drafts, archived int, warnings []tasks.Warning, ...) (string, error)
- func DoctorReport(issues []tasks.Issue, plain, asJSON bool) (string, error)
- func TaskDetail(task *models.Task, plain, asJSON bool) (string, error)
- func TaskList(taskList []*models.Task, warnings []tasks.Warning, plain, asJSON bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Board ¶
func Board(counts []tasks.StatusCount, drafts, archived int, warnings []tasks.Warning, plain, asJSON bool) (string, error)
Board renders a board summary: per-status counts plus draft/archive totals. JSON mode also carries any board warnings.
func DoctorReport ¶
DoctorReport renders doctor issues. Human/plain: one line per issue ("board is healthy" when clean); JSON: {"issues": [...]} with structured fields.
func TaskDetail ¶
TaskDetail renders one task (frontmatter fields + body).
func TaskList ¶
func TaskList(taskList []*models.Task, warnings []tasks.Warning, plain, asJSON bool) (string, error)
TaskList renders a list of tasks. In JSON mode the payload is an object carrying the tasks plus any board warnings; human/plain modes print tasks only (warnings go to stderr in the CLI).
Types ¶
This section is empty.