aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/skydoc/testdata/multiple_files_test/input.bzl
blob: 2c73da21d5f4d20f4bdcae27a0c2f5a3a0de21bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
load(":testdata/multiple_files_test/dep.bzl", "my_rule_impl")

my_rule = rule(
    implementation = my_rule_impl,
    doc = "This is my rule. It does stuff.",
    attrs = {
        "first": attr.label(
            mandatory = True,
            doc = "first my_rule doc string",
            allow_files = True,
            single_file = True,
        ),
        "second": attr.string_dict(mandatory = True),
    },
)

other_rule = rule(
    implementation = my_rule_impl,
    doc = "This is another rule.",
    attrs = {
        "third": attr.label(
            mandatory = True,
            doc = "third other_rule doc string",
            allow_files = True,
            single_file = True,
        ),
        "fourth": attr.string_dict(mandatory = True),
    },
)

yet_another_rule = rule(
    implementation = my_rule_impl,
    doc = "This is yet another rule",
    attrs = {
        "fifth": attr.label(mandatory = True, allow_files = True, single_file = True),
    },
)