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
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| deps | Other batch libraries whose scripts and runfiles are merged in. | List of labels | optional | [] |
| srcs | Batch script sources in this library. | List of labels | optional | [] |
| data | Additional runfiles (any files or targets with runfiles). | List of labels | optional | [] |