bat_binary rule.
Rules
bat_binary
load("@rules_batch//batch:bat_binary.bzl", "bat_binary")
bat_binary(name, deps, srcs, data)
Declares an executable batch script.
The user script is symlinked as the executable entry point. Dependencies
declared via deps and data are merged into the runfiles tree.
To resolve runfiles at runtime, add a dependency on
@rules_batch//batch/runfiles and use the runfiles preamble in your script.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| deps | Dependencies (e.g. bat_library) merged into the executable runfiles. | List of labels | optional | [] |
| srcs | The batch script source file. Must be a singleton list. | List of labels | optional | [] |
| data | Data dependencies merged into the executable runfiles. | List of labels | optional | [] |