github.com/sercand/please@v13.4.0+incompatible/src/query/outputs.go (about) 1 package query 2 3 import "fmt" 4 import "path" 5 import "github.com/thought-machine/please/src/core" 6 7 // TargetOutputs prints all output files for a set of targets. 8 func TargetOutputs(graph *core.BuildGraph, labels []core.BuildLabel) { 9 for _, label := range labels { 10 target := graph.TargetOrDie(label) 11 for _, out := range target.Outputs() { 12 fmt.Printf("%s\n", path.Join(target.OutDir(), out)) 13 } 14 } 15 }