github.com/tiagovtristao/plz@v13.4.0+incompatible/src/query/inputs.go (about) 1 package query 2 3 import "fmt" 4 import "github.com/thought-machine/please/src/core" 5 6 // TargetInputs prints all inputs for a single target. 7 func TargetInputs(graph *core.BuildGraph, labels []core.BuildLabel) { 8 inputPaths := map[string]bool{} 9 for _, label := range labels { 10 for sourcePath := range core.IterInputPaths(graph, graph.TargetOrDie(label)) { 11 inputPaths[sourcePath] = true 12 } 13 } 14 15 for path := range inputPaths { 16 fmt.Printf("%s\n", path) 17 } 18 }