blob: 023d92d353b0097ba7b89145a5444e9bd48d2d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# buildifier: disable=module-docstring
def _repo_rule_impl(ctx):
ctx.file("BUILD", "")
my_repo = repository_rule(
implementation = _repo_rule_impl,
doc = "Minimal example of a repository rule.",
attrs = {
"useless": attr.string(
doc = "This argument will be ingored. You don't have to specify it, but you may.",
default = "ignoreme",
),
},
)
|