2023-01-15 21:24:15 +00:00
|
|
|
"""Copy files and directories to an output directory.
|
2022-04-29 22:26:24 +00:00
|
|
|
"""
|
2021-11-17 05:30:32 +00:00
|
|
|
|
|
|
|
load(
|
|
|
|
"//lib/private:copy_to_directory.bzl",
|
2022-06-28 06:46:00 +00:00
|
|
|
_copy_to_directory_action = "copy_to_directory_action",
|
2023-01-07 19:26:27 +00:00
|
|
|
_copy_to_directory_bin_action = "copy_to_directory_bin_action",
|
2022-04-29 22:26:24 +00:00
|
|
|
_copy_to_directory_lib = "copy_to_directory_lib",
|
2021-11-17 05:30:32 +00:00
|
|
|
)
|
|
|
|
|
2022-04-29 22:26:24 +00:00
|
|
|
# export the starlark library as a public API
|
|
|
|
copy_to_directory_lib = _copy_to_directory_lib
|
2022-06-28 06:46:00 +00:00
|
|
|
copy_to_directory_action = _copy_to_directory_action
|
2023-01-07 19:26:27 +00:00
|
|
|
copy_to_directory_bin_action = _copy_to_directory_bin_action
|
2022-03-04 00:40:32 +00:00
|
|
|
|
2022-04-29 22:26:24 +00:00
|
|
|
copy_to_directory = rule(
|
2023-01-15 21:24:15 +00:00
|
|
|
doc = _copy_to_directory_lib.doc,
|
2022-04-29 22:26:24 +00:00
|
|
|
implementation = _copy_to_directory_lib.impl,
|
|
|
|
provides = _copy_to_directory_lib.provides,
|
|
|
|
attrs = _copy_to_directory_lib.attrs,
|
2023-01-07 19:26:27 +00:00
|
|
|
toolchains = ["@aspect_bazel_lib//lib:copy_to_directory_toolchain_type"],
|
2022-04-29 22:26:24 +00:00
|
|
|
)
|