summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-29 00:47:34 +0200
committerewy <ewy0@protonmail.com>2026-04-29 00:47:34 +0200
commit630d77e1962b43ee95e88a664f5e8b8993213060 (patch)
tree8849c2a87443cd231786aed53b76dc7e4ea11aed /runner
parent8efcf029576ad82908b4ae80b2c92022dfb857d2 (diff)
big stuff
* send empty screen after tui confirmation * add scroll view / viewport * auto enable scroll view on short terminals * add motd tips * add subdirs as categories * add inline toggle hotkey (i)
Diffstat (limited to 'runner')
-rw-r--r--runner/shell/shell.go6
-rw-r--r--runner/shell/target.go9
2 files changed, 7 insertions, 8 deletions
diff --git a/runner/shell/shell.go b/runner/shell/shell.go
index a4aee9d..f8e353c 100644
--- a/runner/shell/shell.go
+++ b/runner/shell/shell.go
@@ -99,10 +99,10 @@ func (s *shell) CreateTarget(fs fs.FS, src string, file string, _ fs.DirEntry) (
BaseTarget: runner.BaseTarget{
Identity: identity.New(filename),
MyTags: model.TagsFromFilename(filename),
+ Sub: sub,
},
- Shell: shell,
- Script: filepath.Join(src, file),
- SubValue: sub,
+ Shell: shell,
+ Script: filepath.Join(src, file),
}, nil
}
diff --git a/runner/shell/target.go b/runner/shell/target.go
index 0194b5d..8422cf0 100644
--- a/runner/shell/target.go
+++ b/runner/shell/target.go
@@ -8,9 +8,8 @@ import (
type Target struct {
runner.BaseTarget
- Shell string
- Script string
- SubValue []string
+ Shell string
+ Script string
}
func (s *Target) String() string {
@@ -22,13 +21,13 @@ func (s *Target) Hydrate(_ *model.Source) (model.HydratedTarget, error) {
}
func (s *Target) Sub() []string {
- return s.SubValue
+ return s.BaseTarget.Sub
}
func (s *Target) Label() string {
return s.Identity.Full
}
-func (s *Target) Create(src *model.Source) *exec.Cmd {
+func (s *Target) Create(_ *model.Source) *exec.Cmd {
return exec.Command(s.Shell, s.Script)
}