12 lines · 376 B · Text
RawDownload
def _wrap_json_properties_impl(ctx):  content = ctx.read(ctx.attr.src)  bzl = "PROPERTIES = %s" % (content)  ctx.file("BUILD", content = "", executable = False)  ctx.file("properties.bzl", content = bzl, executable = False) wrap_json_properties = repository_rule(  attrs = {    "src": attr.label(mandatory = True),  },  implementation = _wrap_json_properties_impl,)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t