Skip to content

Commit

Permalink
add docstring to a build_setting rule as a first step towards test da…
Browse files Browse the repository at this point in the history
…ta in #115
  • Loading branch information
aiuto committed Jan 5, 2022
1 parent f4d4b3a commit e74ba9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testdata/config_apis_test/golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
int_setting(<a href="#int_setting-name">name</a>)
</pre>


An integer flag.

**ATTRIBUTES**

Expand All @@ -28,7 +28,7 @@ int_setting(<a href="#int_setting-name">name</a>)
string_flag(<a href="#string_flag-name">name</a>)
</pre>


A string flag.

**ATTRIBUTES**

Expand Down
2 changes: 2 additions & 0 deletions test/testdata/config_apis_test/input.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ def _build_setting_impl(ctx):
return []

string_flag = rule(
doc = "A string flag.",
implementation = _build_setting_impl,
build_setting = config.string(flag = True),
)

int_setting = rule(
doc = "An integer flag.",
implementation = _build_setting_impl,
build_setting = config.int(flag = False),
)

0 comments on commit e74ba9f

Please sign in to comment.