github.com/tiagovtristao/plz@v13.4.0+incompatible/src/query/query_step.go (about) 1 // Package query implements a simple query language for Please. 2 // 3 // Currently supported operations: 4 // 'deps': 'plz query deps //src:please' 5 // shows the dependency graph of this target. 6 // 'somepath': 'plz query somepath //src:please //src/parse/rules:java_rules_pyc' 7 // finds a route between these two targets, if there is one. 8 // useful for saying 'why on earth do I depend on that thing?' 9 // 'alltargets': 'plz query alltargets //src/...' 10 // shows all targets currently in the graph. careful in large repos! 11 // 'print': 'plz query print //src:please' 12 // produces a python-like function call that would define the rule. 13 // 'completions': 'plz query completions //sr' 14 // produces a list of possible completions for the given stem. 15 // 'affectedtargets': 'plz query affectedtargets path/to/changed_file.py' 16 // produces a list of test targets which have a transitive dependency on 17 // the given file. 18 // 'input': 'plz query input //src:label' produces a list of all the files 19 // (including transitive deps) that are referenced by this rule. 20 // 'output': 'plz query output //src:label' produces a list of all the files 21 // that are output by this rule. 22 // 'graph': 'plz query graph' produces a JSON representation of the build graph 23 // that other programs can interpret for their own uses. 24 package query 25 26 import "gopkg.in/op/go-logging.v1" 27 28 var log = logging.MustGetLogger("query")