summaryrefslogtreecommitdiff
path: root/runner/shell/target.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-14 20:13:13 +0200
committerewy <ewy0@protonmail.com>2026-04-14 20:13:13 +0200
commitf6963b1c451afcb2f0d0104f38178235e52f8b63 (patch)
tree791ac29577c358dcc588d2dc8db67a7be5e9b161 /runner/shell/target.go
parentf26f2a1b0d9d2772ce42da34fd99762e5aa3ad32 (diff)
remove all name repetition
Diffstat (limited to 'runner/shell/target.go')
-rw-r--r--runner/shell/target.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/runner/shell/target.go b/runner/shell/target.go
index e823d41..db3fcc8 100644
--- a/runner/shell/target.go
+++ b/runner/shell/target.go
@@ -7,29 +7,29 @@ import (
"pik/runner"
)
-type ShellTarget struct {
+type Target struct {
runner.BaseTarget
Shell string
Script string
SubValue []string
}
-func (s *ShellTarget) String() string {
+func (s *Target) String() string {
return s.Label()
}
-func (s *ShellTarget) Hydrate(_ *model.Source) (model.HydratedTarget, error) {
+func (s *Target) Hydrate(_ *model.Source) (model.HydratedTarget, error) {
return Runner.Hydrate(s)
}
-func (s *ShellTarget) Sub() []string {
+func (s *Target) Sub() []string {
return s.SubValue
}
-func (s *ShellTarget) Label() string {
+func (s *Target) Label() string {
return s.Identity.Full
}
-func (s *ShellTarget) Create(src *model.Source) *exec.Cmd {
+func (s *Target) Create(src *model.Source) *exec.Cmd {
return exec.Command(s.Shell, filepath.Join(src.Path, s.Script))
}