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.
func Apply ¶
Apply moves a document to a new status and returns the rewritten file. The document on disk is not touched; writing it is the caller's business.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.