Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ox query

Query the dependency graph using Bazel-style expressions.

Usage

ox query <EXPRESSION> [OPTIONS]

Expressions

ExpressionDescription
deps(X)All transitive dependencies of target X
rdeps(X)All targets that transitively depend on X
allpaths(X, Y)All paths from X to Y in the DAG

Options

FlagDescription
--jsonOutput JSON instead of human-readable text
-f, --file <FILE>Oxymakefile path (default: Oxymakefile.toml)

Examples

# What does annotate depend on?
ox query 'deps(annotate)'

# What depends on the data rule? (reverse dependencies)
ox query 'rdeps(data)'

# All paths from data to annotate
ox query 'allpaths(data, annotate)'

# JSON output for programmatic use
ox query 'deps(annotate)' --json

See Also