Checker seat: the try's end by hand is a verb too (issue 774)
This commit is contained in:
@@ -8,7 +8,7 @@ package catalogue
|
||||
// CheckerSeat is the seat mesh-delivery-checker holds.
|
||||
const CheckerSeat = "mesh-delivery-checker"
|
||||
|
||||
// checkerVerbs are the checker seat's verbs: ask a try, read one. Optional until the checker serves them
|
||||
// checkerVerbs are the checker seat's verbs: ask a try, read one, end one by hand. Optional until the checker serves them
|
||||
// everywhere.
|
||||
func checkerVerbs() []Verb {
|
||||
return []Verb{
|
||||
@@ -28,5 +28,10 @@ func checkerVerbs() []Verb {
|
||||
"(pass, fail, or error when it could not run), with what was said of it, the head and the trunk commit " +
|
||||
"it was merged onto, the time it took and what failed first. Read-only.",
|
||||
Input: schema(map[string]string{"id": "the try's id, try-<digits>"}, []string{"id"})},
|
||||
{Name: "try-end", Optional: true, Description: "End a try that waits or runs, as error, by hand: say why (kept in " +
|
||||
"what it says). Its place among the tries is free at once and the next try of its head asks anew with a new " +
|
||||
"id. A try that ended already is refused.",
|
||||
Input: schema(map[string]string{"id": "the try's id, try-<digits>", "why": "why it is ended, in words"},
|
||||
[]string{"id", "why"})},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ func TestTheCheckerSeatServesTheTry(t *testing.T) {
|
||||
t.Errorf("try replaces %v", v.Replaces)
|
||||
}
|
||||
}
|
||||
if !slices.Equal(names, []string{"try", "try-read"}) {
|
||||
if !slices.Equal(names, []string{"try", "try-read", "try-end"}) {
|
||||
t.Errorf("verbs = %v", names)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user