summaryrefslogtreecommitdiff
path: root/runner/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'runner/base.go')
-rw-r--r--runner/base.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/runner/base.go b/runner/base.go
index 28ea4d5..7435fd7 100644
--- a/runner/base.go
+++ b/runner/base.go
@@ -22,6 +22,7 @@ func (t *BaseTarget) Matches(input string) bool {
func (t *BaseTarget) ShortestId() string {
return t.Reduced
}
+func (b *BaseTarget) Invocation(src *model.Source) []string {
func Hydrated[T model.Target](in T) BaseHydration[T] {
return BaseHydration[T]{
@@ -53,6 +54,10 @@ func (b BaseHydration[T]) Hydrate(src *model.Source) (model.HydratedTarget, erro
return b, nil
}
+func (b BaseHydration[T]) Invocation(src *model.Source) []string {
+ return b.BaseTarget.Invocation(src)
+}
+
func (b BaseHydration[T]) Visible() bool {
return b.BaseTarget.Visible()
}