You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add param ordering note to plugins.
Add a note to every filter, test, and lookup to list positional parameters before keyword ones.
* review suggestions
* Remove whitespace handling and lookup filter
* Adjust/fix examples, also support lookups better.
* Update baseline for tests.
* Adjust changelog fragment.
* Lookups have no positional parameters. (They have terms.)
* Support lookup terms.
* Be more explicit.
* Update baseline.
---------
Co-authored-by: Felix Fontein <[email protected]>
- Add a note about the ordering of positional and named parameter to the plugin page. Also mention positional and keyword parameters for lookups (https://github.com/ansible-community/antsibull-docs/pull/101).
This describes positional parameters of the @{plugin_type}@. These are the values ``positional1``, ``positional2`` and so on in the following
243
248
{%ifplugin_type == 'filter'%}
244
-
This describes positional parameters of the filter. These are the values ``positional1``, ``positional2`` and so on in the following example: ``input | @{plugin_name}@(positional1, positional2, ...)``.
This describes positional parameters of the test. These are the values ``positional1``, ``positional2`` and so on in the following examples: ``input is @{plugin_name}@(positional1, positional2, ...)`` and ``input is not @{plugin_name}@(positional1, positional2, ...)``.
251
+
examples: ``input is @{plugin_name}@(positional1, positional2, ...)`` and ``input is not @{plugin_name}@(positional1, positional2, ...)``
247
252
{%endif%}
248
253
249
254
{%ifuse_html_blobs%}
@@ -257,21 +262,25 @@ This describes positional parameters of the test. These are the values ``positio
examples: ``input is @{plugin_name}@(key1=value1, key2=value2, ...)`` and ``input is not @{plugin_name}@(key1=value1, key2=value2, ...)``
276
+
{%elifplugin_type == 'lookup'%}
277
+
examples: ``lookup('@{plugin_name}@', key1=value1, key2=value2, ...)`` and ``query('@{plugin_name}@', key1=value1, key2=value2, ...)``
278
+
{%endif%}
264
279
{%else%}
265
280
Parameters
266
281
----------
267
282
{%endif%}
268
283
269
-
{%ifplugin_type == 'filter'%}
270
-
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following example: ``input | @{plugin_name}@(key1=value1, key2=value2, ...)``.
271
-
{%elifplugin_type == 'test'%}
272
-
This describes keyword parameters of the test. These are the values ``key1=value1``, ``key2=value2`` and so on in the following examples: ``input is @{plugin_name}@(key1=value1, key2=value2, ...)`` and ``input is not @{plugin_name}@(key1=value1, key2=value2, ...)``.
``input is @{plugin_name}@(positional1, positional2, key1=value1, key2=value2)`` and ``input is not @{plugin_name}@(positional1, positional2, key1=value1, key2=value2)``
Copy file name to clipboardExpand all lines: tests/functional/baseline-default/collections/ns2/col/foo_filter.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,8 @@ This describes the input of the filter, the value before ``| ns2.col.foo``.
141
141
Keyword parameters
142
142
------------------
143
143
144
-
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following example: ``input | ns2.col.foo(key1=value1, key2=value2, ...)``.
144
+
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
Copy file name to clipboardExpand all lines: tests/functional/baseline-default/collections/ns2/col/foo_test.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,8 @@ This describes the input of the test, the value before ``is ns2.col.foo`` or ``i
138
138
Keyword parameters
139
139
------------------
140
140
141
-
This describes keyword parameters of the test. These are the values ``key1=value1``, ``key2=value2`` and so on in the following examples: ``input is ns2.col.foo(key1=value1, key2=value2, ...)`` and ``input is not ns2.col.foo(key1=value1, key2=value2, ...)``.
141
+
This describes keyword parameters of the test. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
142
+
examples: ``input is ns2.col.foo(key1=value1, key2=value2, ...)`` and ``input is not ns2.col.foo(key1=value1, key2=value2, ...)``
Copy file name to clipboardExpand all lines: tests/functional/baseline-no-breadcrumbs/collections/ns2/col/foo_filter.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,8 @@ This describes the input of the filter, the value before ``| ns2.col.foo``.
141
141
Keyword parameters
142
142
------------------
143
143
144
-
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following example: ``input | ns2.col.foo(key1=value1, key2=value2, ...)``.
144
+
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
Copy file name to clipboardExpand all lines: tests/functional/baseline-no-breadcrumbs/collections/ns2/col/foo_test.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,8 @@ This describes the input of the test, the value before ``is ns2.col.foo`` or ``i
138
138
Keyword parameters
139
139
------------------
140
140
141
-
This describes keyword parameters of the test. These are the values ``key1=value1``, ``key2=value2`` and so on in the following examples: ``input is ns2.col.foo(key1=value1, key2=value2, ...)`` and ``input is not ns2.col.foo(key1=value1, key2=value2, ...)``.
141
+
This describes keyword parameters of the test. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
142
+
examples: ``input is ns2.col.foo(key1=value1, key2=value2, ...)`` and ``input is not ns2.col.foo(key1=value1, key2=value2, ...)``
Copy file name to clipboardExpand all lines: tests/functional/baseline-no-indexes/collections/ns2/col/foo_filter.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,8 @@ This describes the input of the filter, the value before ``| ns2.col.foo``.
141
141
Keyword parameters
142
142
------------------
143
143
144
-
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following example: ``input | ns2.col.foo(key1=value1, key2=value2, ...)``.
144
+
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
0 commit comments