blob: aca64f8f25a52aae22d1a6e338d3800ab7d07ab9 [file] [log] [blame]
# 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 ignored. You don't have to specify it, but you may.",
default = "ignoreme",
),
},
)