From 630d77e1962b43ee95e88a664f5e8b8993213060 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 29 Apr 2026 00:47:34 +0200 Subject: 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) --- runner/shell/shell.go | 6 +++--- runner/shell/target.go | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'runner/shell') 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) } -- cgit v1.3.1