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).operationandlocus.localare 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:
--explainkeeps printing today’s term for it. Approving the wording is replacing the empty string, and removing the row fromHELDin the tests. - mismatch
- The refusal line for a facet that stopped a level, in plain words.
- render
- The body of the
resolved profilesection: each capability’s rows, then the verdict of the band. - rows
- The rows
--explainprints 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. Withnamed_place(the command reaches a place its Why line names, such as a credential store) a row that would call the place one without a rule says only what the command does. - spoken
- The phrase for a term whose wording is approved;
Nonewhile it is held or unknown. - term
- The phrase for one term of one axis.
- vocabulary
- Every axis
--explaincan 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.