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

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsDependencies (e.g. bat_library) merged into the executable runfiles.List of labelsoptional[]
srcsThe batch script source file. Must be a singleton list.List of labelsoptional[]
dataData dependencies merged into the executable runfiles.List of labelsoptional[]