Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Priority = Scale{Axis: "priority", Names: []string{"Urgent", "High", "Medium", "Low"}, None: 5, /* contains filtered or unexported fields */} Effort = Scale{Axis: "effort", Names: []string{"Low", "Medium", "High"}, None: 2, /* contains filtered or unexported fields */} )
The two scales (ADR-0040, "Two axes, the forge's levels, read by name").
var Own = own()
Own is workline's own priority labels, workline:priority/1, the most pressing, to /4, the most pressing the warmest: the family the role writes until ADR-0040's detection finds a project's.
Used is the scheme the engine reads and writes issues with: workline's own priority labels; no effort, read nowhere until ADR-0040's grid.
Functions ¶
func Value ¶
Value is a priority level as the role's texts say it: its number, 1 the most pressing, as workline's own labels write it; "none" for none.
Types ¶
type Family ¶
Family is where a project keeps an axis: labels that carry its levels, each read by its name, or a field's options. Prefix starts each label of a family of labels; "" for a field's options. Its labels are in the order of their levels: the first of a level is the one written.
func Labels ¶
Labels reads a project's family of labels by name: each label starting with prefix, its rest a number or a word. Numbers count from the family's own start, 0 when it has a 0, else 1 (Scale.Number): a family created a label at a time, its first label never made, still reads its second as the second level. A prefix ending in a letter or a digit takes numbers only — P0, effort1: hours —, so P-critical belongs to another family and Performance to none. A word no table knows carries no level, and the error names it, to be said once.
func Options ¶
Options reads a field's options by name, never by their position: a forge lists them as its owner arranged them, an Effort field heaviest first. An option no table knows carries no level, and the error names it, to be said once.
func (Family) First ¶
First is the first level in the order's direction names carry — the most pressing priority, the lightest effort —; 0 when they carry none.
func (Family) Label ¶
Label is the label written for level l: the family's first carrying it; ok is false when none does.
func (Family) Levels ¶
Levels are the levels names carry in the family, in the names' order; a name outside it carries none.
type Label ¶
Label is one name of a family and the level it carries. Color and About, for a label the role creates: its colour and what it says of itself.
type Scale ¶
type Scale struct {
Axis string
Names []string
// None is where an issue with no value ranks: after the last
// priority; an effort not estimated as the middle one.
None int
// contains filtered or unexported fields
}
Scale is an axis's levels in the order's direction: level 1 is the first name, the most pressing priority or the lightest effort, the last name the last level; 0 is none.
func (Scale) Number ¶
Number is the level of the number n in a family numbered from first, 0 or 1: first is the first level, each next number the next one, every number past the last level the last (P0 to P5: Urgent, High, Medium, then Low thrice); 0 below first.