From 3ed9a0e34239f1a6ca2bf8cbecda0edc44129bf2 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 27 Oct 2026 22:49:44 +0100 Subject: [PATCH] Checker seat: the try's end by hand is a verb too (issue 774) --- go/catalogue/checker_seat.go | 7 ++++++- go/catalogue/checker_seat_test.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/go/catalogue/checker_seat.go b/go/catalogue/checker_seat.go index 30e8468..7426d2c 100644 --- a/go/catalogue/checker_seat.go +++ b/go/catalogue/checker_seat.go @@ -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-"}, []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-", "why": "why it is ended, in words"}, + []string{"id", "why"})}, } } diff --git a/go/catalogue/checker_seat_test.go b/go/catalogue/checker_seat_test.go index f714337..784bf71 100644 --- a/go/catalogue/checker_seat_test.go +++ b/go/catalogue/checker_seat_test.go @@ -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) } }