summaryrefslogtreecommitdiff
path: root/runner/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'runner/base.go')
-rw-r--r--runner/base.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/runner/base.go b/runner/base.go
index 7435fd7..eb91812 100644
--- a/runner/base.go
+++ b/runner/base.go
@@ -22,7 +22,14 @@ func (t *BaseTarget) Matches(input string) bool {
func (t *BaseTarget) ShortestId() string {
return t.Reduced
}
+
+func (b *BaseTarget) Visible() bool {
+ return b.Tags().Visible()
+}
+
func (b *BaseTarget) Invocation(src *model.Source) []string {
+ return append([]string{src.Identity.Reduced}, append(b.Sub, b.Identity.Reduced)...)
+}
func Hydrated[T model.Target](in T) BaseHydration[T] {
return BaseHydration[T]{