Skip to main content
Version: 2.8.x

params_file

params_file public API

Macros and Functions

params_file

Generates a UTF-8 encoded params file from a list of arguments.

Handles variable substitutions for args.

Example usage (generated):

load("@aspect_bazel_lib//lib:params_file.bzl", "params_file")

params_file(
# Name of the rule.
name = "",
# Path of the output file, relative to this package.
out = "",
)

name

Required.

Name of the rule.

out

Required.

Path of the output file, relative to this package.

args

Optional. Default: []

Arguments to concatenate into a params file.

data

Optional. Default: []

Data for $(location) expansions in args.

newline

Optional. Default: "auto"

Line endings to use. One of ["auto", "unix", "windows"].

  • "auto" for platform-determined
  • "unix" for LF
  • "windows" for CRLF

kwargs

Optional.

undocumented named arguments