diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
| commit | 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 (patch) | |
| tree | df9a9af3f6b37165c9522eefea8456aa1baea9d5 /model | |
| parent | 19f68366eb4a2c01f801b29585fd0a36bdf47488 (diff) | |
simplify the contracts
Diffstat (limited to 'model')
| -rw-r--r-- | model/target.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
