From e7fcab3fbca88fb8637881f3b2cf0ea8a1e9c8bf Mon Sep 17 00:00:00 2001 From: twerth Date: Thu, 9 Aug 2018 08:03:41 -0700 Subject: Add minimal documentation for the new aquery command. RELNOTES: None PiperOrigin-RevId: 208049281 --- site/docs/user-manual.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'site') diff --git a/site/docs/user-manual.html b/site/docs/user-manual.html index c4c947bb70..c2d54f2662 100644 --- a/site/docs/user-manual.html +++ b/site/docs/user-manual.html @@ -20,6 +20,7 @@ title: User Manual Available commands: analyze-profile Analyzes build profile data. + aquery Executes a query on the post-analysis action graph. build Builds the specified targets. canonicalize-flags Canonicalize Bazel flags. @@ -3064,6 +3065,30 @@ Examples: bazel query --output location 'kind(genrule, deps(kind(".*_test rule", foo/bar/pebl/...)))' +

Querying the action graph with Bazel

+ +Caution: The aquery command is still experimental and its API will change. + +

+ The aquery command allows you to query for actions in your build graph. + It operates on the post-analysis configured target graph and exposes + information about actions, artifacts and their relationships. +

+ +

+ The tool accepts several command-line options. + --output selects the output format + (proto is the default, use text for human readable + output). + Notably, the aquery command runs on top of a regular Bazel build and inherits + the set of options available during a build. +

+ +

+ It supports the same set of functions that is also available to traditional + query but siblings, buildfiles and + tests. +

Miscellaneous Bazel commands and options

-- cgit v1.2.3