summaryrefslogtreecommitdiff
path: root/runner/shell
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-29 01:30:12 +0200
committerewy <ewy0@protonmail.com>2026-04-29 01:30:12 +0200
commit2b28ee919614d5ddaceda26ce488a0ca4c851cb3 (patch)
treedf9a9af3f6b37165c9522eefea8456aa1baea9d5 /runner/shell
parent19f68366eb4a2c01f801b29585fd0a36bdf47488 (diff)
simplify the contracts
Diffstat (limited to 'runner/shell')
-rw-r--r--runner/shell/hydrated.go4
-rw-r--r--runner/shell/target.go4
2 files changed, 6 insertions, 2 deletions
diff --git a/runner/shell/hydrated.go b/runner/shell/hydrated.go
index 1ecce51..dcd28be 100644
--- a/runner/shell/hydrated.go
+++ b/runner/shell/hydrated.go
@@ -16,8 +16,8 @@ func (h *Hydrated) Icon() string {
return "\uF489"
}
-func (h *Hydrated) Description() string {
- desc, err := describe.Describe(h.BaseTarget, h.BaseTarget.Script)
+func (h *Hydrated) Description(src *model.HydratedSource) string {
+ desc, err := describe.Describe(h.Target(), h.Target().File(src.Source))
if err != nil {
spool.Warn("%v\n", err)
return ""
diff --git a/runner/shell/target.go b/runner/shell/target.go
index 8422cf0..189bcb7 100644
--- a/runner/shell/target.go
+++ b/runner/shell/target.go
@@ -12,6 +12,10 @@ type Target struct {
Script string
}
+func (s *Target) File(src *model.Source) string {
+ return s.Script
+}
+
func (s *Target) String() string {
return s.Label()
}