From 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 29 Apr 2026 01:30:12 +0200 Subject: simplify the contracts --- model/target.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'model') diff --git a/model/target.go b/model/target.go index 683ab8f..156ee47 100644 --- a/model/target.go +++ b/model/target.go @@ -20,15 +20,15 @@ type Target interface { Visible() bool // Invocation should return the "canonical invocation": simple to remember Invocation(src *Source) []string + File(src *Source) string } // HydratedTarget is something we want to show in the menu type HydratedTarget interface { - Target // Icon is some text which will be used as an icon Icon() string // Description is a one-line description of what this does - Description() string + Description(src *HydratedSource) string // Target returns our inner target Target() Target } -- cgit v1.3.1