Documentation
¶
Overview ¶
Package lifecycle moves a document through its statuses and rewrites the file. Nothing here prompts, prints or commits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRationale ¶
AppendRationale adds the rejection rationale section to a document, as rejecting one does. `archdoc new --status=rejected` creates a document that is already rejected, so it needs the same section and the same prompt in it; this is exported so that there is one of each rather than a second copy in the templates.
Types ¶
type Unfinished ¶ added in v0.6.0
Unfinished refuses a transition that would freeze a document lint reports errors about. It carries the findings rather than a rendering of them, so a caller presents them as it presents lint's own.
func (*Unfinished) Error ¶ added in v0.6.0
func (e *Unfinished) Error() string