• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2
3<a name="#my_rule"></a>
4
5## my_rule
6
7<pre>
8my_rule(<a href="#my_rule-name">name</a>, <a href="#my_rule-deps">deps</a>, <a href="#my_rule-extra_arguments">extra_arguments</a>, <a href="#my_rule-out">out</a>, <a href="#my_rule-src">src</a>, <a href="#my_rule-tool">tool</a>)
9</pre>
10
11This rule exercises some of the build API.
12
13**ATTRIBUTES**
14
15
16| Name  | Description | Type | Mandatory | Default |
17| :-------------: | :-------------: | :-------------: | :-------------: | :-------------: |
18| name |  A unique name for this target.   | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required |  |
19| deps |  A list of dependencies.   | <a href="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional | [] |
20| extra_arguments |  -   | List of strings | optional | [] |
21| out |  The output file.   | <a href="https://bazel.build/docs/build-ref.html#labels">Label</a> | required |  |
22| src |  The source file.   | <a href="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
23| tool |  The location of the tool to use.   | <a href="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | //foo/bar/baz:target |
24
25
26<a name="#MyInfo"></a>
27
28## MyInfo
29
30<pre>
31MyInfo(<a href="#MyInfo-foo">foo</a>, <a href="#MyInfo-bar">bar</a>)
32</pre>
33
34
35
36**FIELDS**
37
38
39| Name  | Description |
40| :-------------: | :-------------: |
41| foo |  Something foo-related.    |
42| bar |  Something bar-related.    |
43
44
45<a name="#exercise_the_api"></a>
46
47## exercise_the_api
48
49<pre>
50exercise_the_api()
51</pre>
52
53
54
55**PARAMETERS**
56
57
58
59<a name="#my_rule_impl"></a>
60
61## my_rule_impl
62
63<pre>
64my_rule_impl(<a href="#my_rule_impl-ctx">ctx</a>)
65</pre>
66
67
68
69**PARAMETERS**
70
71
72| Name  | Description | Default Value |
73| :-------------: | :-------------: | :-------------: |
74| ctx |  <p align="center"> - </p>   |  none |
75
76
77