@jq.bzl//jq:jq.bzl
Public API for calling jq
Functions & Macros
jqInvoke jq with a filter on a set of json input files.
Parameters
*name | Name of the rule |
*srcs | List of input files. May be empty. |
filter | Filter expression (https://stedolan.github.io/jq/manual/#Basicfilters). Be careful to write the filter so that it handles unstamped builds, as in the example above. Default: None |
filter_file | File containing filter expression (alternative to Default: None |
args | Additional args to pass to jq Default: [] |
out | Name of the output json file; defaults to the rule name plus ".json" Default: None |
data | List of additional files. May be empty. Default: [] |
expand_args | Run bazel's location and make variable expansion on the args. Default: False |
kwargs | Other common named parameters such as |
Rules
jq_ruleMost users should use the jq macro instead.
| Attribute | Type | Description |
|---|---|---|
*name | name | A unique name for this target. |
*srcs | list of labels | |
data | list of labels | Default: [] |
filter | string | Default: "" |
filter_file | label | Default: None |
args | list of strings | Default: [] |
expand_args | boolean | Default: False |
out | label | Default: None |
stamp | integer | Whether to encode build information into the output. Possible values:
Default: -1 |