summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
Diffstat (limited to 'runner')
-rw-r--r--runner/base.go2
-rw-r--r--runner/python/projtarget.go3
-rw-r--r--runner/shell/hydrated.go9
3 files changed, 10 insertions, 4 deletions
diff --git a/runner/base.go b/runner/base.go
index 7a6ce81..28ea4d5 100644
--- a/runner/base.go
+++ b/runner/base.go
@@ -70,7 +70,7 @@ func (b BaseHydration[T]) Icon() string {
}
func (b BaseHydration[T]) Description() string {
- return "//TODO"
+ return ""
}
func (b BaseHydration[T]) Target() model.Target {
diff --git a/runner/python/projtarget.go b/runner/python/projtarget.go
index 1604948..c7422b4 100644
--- a/runner/python/projtarget.go
+++ b/runner/python/projtarget.go
@@ -21,8 +21,7 @@ func (h *HydratedProjTarget) Icon() string {
}
func (h *HydratedProjTarget) Description() string {
- //TODO implement me
- return "//TODO"
+ return h.BaseTarget.Cmd
}
func (p *ProjTarget) Create(s *model.Source) *exec.Cmd {
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
}