Skip to main content

Module plain

Module plain 

Source
Expand description

Plain words for what --explain prints in facet terms.

--explain shows the behaviour a command resolved to as facet terms (locus.local = machine), which mean nothing to someone who has not read the taxonomy. This is the dictionary of short, everyday phrases that replace them: one for every operation in every local place (the line that says what the command does), and one for every term of every other axis.

The tests derive the vocabulary from the code (FacetTerm::all() per axis, and the axis names Capability::set_facets prints), so a new axis or term fails until it has a phrase.

Constants§

ACTIONS
What a command does in a place: (operation, locus.local, phrase).
TERMS
Every other axis: (axis, term, phrase). operation and locus.local are here too, for a line that names one without the other (a refusal saying which places a level allows).

Functions§

action
The phrase for what a command does: an operation in a local place.
is_held
An empty phrase is a row whose wording awaits the owner’s approval: --explain keeps printing today’s term for it. Approving the wording is replacing the empty string, and removing the row from HELD in the tests.
mismatch
The refusal line for a facet that stopped a level, in plain words.
render
The body of the resolved profile section: each capability’s rows, then the verdict of the band.
rows
The rows --explain prints for one capability’s facets, in order. The operation and the local place become one row of what the command does; while that wording is held the two rows stay as they were. Every other axis keeps its name and prints its phrase.
spoken
The phrase for a term whose wording is approved; None while it is held or unknown.
term
The phrase for one term of one axis.
vocabulary
Every axis --explain can print, with every term it can take, from the facet types.
words
What to print for a term: its phrase, or the term itself while its wording is held or unknown.