bat_library rule implementation.

Rules

bat_library

load("@rules_batch//batch:bat_library.bzl", "bat_library")

bat_library(name, deps, srcs, data)

Groups batch scripts and optional data for use as dependencies of bat_binary or other bat_library targets. Batch has no link step; this rule only bundles files and propagates runfiles, similar in spirit to sh_library.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsOther batch libraries whose scripts and runfiles are merged in.List of labelsoptional[]
srcsBatch script sources in this library.List of labelsoptional[]
dataAdditional runfiles (any files or targets with runfiles).List of labelsoptional[]