Checker seat: the try's end by hand is a verb too (issue 774)

This commit is contained in:
2026-10-28 21:54:04 +01:00
parent 9b5657a3d6
commit 3ed9a0e342
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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"})},
}
}
+1 -1
View File
@@ -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)
}
}