summaryrefslogtreecommitdiff
path: root/runner/shell/hydrated.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-14 19:04:41 +0200
committerewy <ewy0@protonmail.com>2026-04-14 19:04:41 +0200
commit466758ce0a6de964f6ed8228d78fb7e9a4ff9a67 (patch)
tree8e522bcfdd08c07402fea89033adb84f85bd4665 /runner/shell/hydrated.go
parent370f13b58e9cb74eeab3461afb779cf4d013c94b (diff)
add descriptions
Diffstat (limited to 'runner/shell/hydrated.go')
-rw-r--r--runner/shell/hydrated.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/runner/shell/hydrated.go b/runner/shell/hydrated.go
index 5a86d5a..77fc45c 100644
--- a/runner/shell/hydrated.go
+++ b/runner/shell/hydrated.go
@@ -1,7 +1,9 @@
package shell
import (
+ "pik/describe"
"pik/runner"
+ "pik/spool"
)
type HydratedShellTarget struct {
@@ -13,5 +15,10 @@ func (h *HydratedShellTarget) Icon() string {
}
func (h *HydratedShellTarget) Description() string {
- return "//TODO"
+ desc, err := describe.Describe(h.BaseTarget.Script)
+ if err != nil {
+ spool.Warn("%v\n", err)
+ return ""
+ }
+ return desc
}