• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# buildifier: disable=module-docstring
2# buildifier: disable=function-docstring
3def exercise_the_api():
4    var1 = apple_common.platform_type
5    var2 = apple_common.AppleDynamicFramework
6
7exercise_the_api()
8
9# buildifier: disable=rule-impl-return
10def my_rule_impl(ctx):
11    return struct()
12
13apple_related_rule = rule(
14    implementation = my_rule_impl,
15    doc = "This rule does apple-related things.",
16    attrs = {
17        "first": attr.label(mandatory = True, allow_single_file = True),
18        "second": attr.string_dict(mandatory = True),
19        "third": attr.output(mandatory = True),
20        "fourth": attr.bool(default = False, mandatory = False),
21    },
22)
23