diff options
Diffstat (limited to 'runner/shell')
| -rw-r--r-- | runner/shell/hydrated.go | 4 | ||||
| -rw-r--r-- | runner/shell/target.go | 4 |
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() } |
