add all supported arguments in docs for summary()

pull/9788/head
Stone Tickle 3 years ago committed by Jussi Pakkanen
parent c85f7a39a8
commit e8e7fd98e2
  1. 33
      docs/yaml/functions/summary.yaml

@ -10,7 +10,7 @@ description: |
the section keyword argument is omitted, those key/value pairs are the section keyword argument is omitted, those key/value pairs are
implicitly grouped into a section with no title. key/value pairs can implicitly grouped into a section with no title. key/value pairs can
optionally be grouped into a dictionary, but keep in mind that optionally be grouped into a dictionary, but keep in mind that
dictionaries does not guarantee ordering. `key` must be string, dictionaries do not guarantee ordering. `key` must be string,
`value` can be: `value` can be:
- an integer, boolean or string - an integer, boolean or string
@ -62,10 +62,33 @@ example: |
``` ```
posargs: posargs:
key: key_or_dict:
type: str type: str | dict[str | bool | int | dep | external_program | list[str | bool | int | dep | external_program]]
description: The name of the new entry description: |
The name of the new entry, or a dict containing multiple entries. If a
dict is passed it is equivalent to calling summary() once for each
key-value pair. Keep in mind that dictionaries do not guarantee
ordering.
optargs:
value: value:
type: str | bool | int | dep | external_program | list[str | bool | int | dep | external_program] type: str | bool | int | dep | external_program | list[str | bool | int | dep | external_program]
description: The value to print for the `key` description: |
The value to print for the `key`. Only valid if `key_or_dict` is a str.
kwargs:
bool_yn:
type: bool
default: false
description: Convert bool values to yes and no
section:
type: str
description: The section to put this summary information under. If the
section keyword argument is omitted, key/value pairs are implicitly
grouped into a section with no title.
list_sep:
type: str
since: 0.54.0
description: |
The separator to use when printing list values in this summary. If no
separator is given, each list item will be printed on its own line.

Loading…
Cancel
Save