summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 17:09:31 +0200
committerewy <ewy0@protonmail.com>2026-04-22 17:09:31 +0200
commit5595ded1f2a31d6bc0f924d977553c36059ce5de (patch)
tree0335f290b4d42e8955b40acaef33e4cd6b7a789d /runner
parent615889e00e744f76a8e4e1bade2367bde8598878 (diff)
add "override" tag which in the future will allow you to have local overrides for targets
Diffstat (limited to 'runner')
-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]{