Skip to content

Commit 5dbe921

Browse files
when targeting a resource the associated actions should be run
1 parent a750471 commit 5dbe921

File tree

8 files changed

+923
-11
lines changed

8 files changed

+923
-11
lines changed

internal/dag/dag.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ func (g *AcyclicGraph) Descendants(v Vertex) Set {
121121
return s
122122
}
123123

124+
// Children returns a Set of direct children of the provided starting Vertex v.
125+
func (g *AcyclicGraph) Children(v Vertex) Set {
126+
return g.upEdgesNoCopy(v)
127+
}
128+
124129
// FirstDescendantsWith returns a Set that includes every Vertex yielded by
125130
// walking up from the provided starting Vertex v, and stopping each branch when
126131
// match returns true. This will return the set of all first descendants

0 commit comments

Comments
 (0)