Documentation
¶
Overview ¶
Package task implements the task contract of §6.1: one markdown file per task under .devclean/tasks/, with a frontmatter block in the same yaml subset as config.yml and a free notes body.
Index ¶
Constants ¶
View Source
const ( DefaultLimiteIntentos = 3 DefaultLimiteLineas = 200 )
Defaults for the optional contract fields (§6.1).
View Source
const Version = 1
Version is the contract version this binary understands (adenda A.1). A file declaring a higher one is read tolerantly and reported.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Task ¶
type Task struct {
Version int `json:"version"`
ID string `json:"id"`
Titulo string `json:"titulo"`
Porque string `json:"porque"`
ListoCuando string `json:"listo_cuando"`
TocarSolo []string `json:"tocar_solo"`
NoTocar []string `json:"no_tocar"`
DependeDe []string `json:"depende_de,omitempty"`
LimiteIntentos int `json:"limite_intentos"`
LimiteLineas int `json:"limite_lineas"`
Riesgos string `json:"riesgos"`
Peso string `json:"peso,omitempty"` // liviana | media | pesada ("" = estrategia global)
// Notas is the free body after the frontmatter.
Notas string `json:"notas,omitempty"`
// Aviso carries the warning of a contract written by a newer
// devclean: it parsed, but fields were skipped.
Aviso string `json:"aviso,omitempty"`
}
Task is the task contract. ListoCuando is the only mandatory field beyond id and titulo; the rest carry defaults.
func List ¶
List returns every task in dir, sorted by ID. A malformed file fails the whole listing: the tasks directory must stay clean.
Click to show internal directories.
Click to hide internal directories.