From 3455f21f72fdc66f35479e01cf9d1fff50665c16 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 30 Mar 2022 22:57:57 -0400 Subject: docs: note that find_program accepts file objects This was implemented in commit 280346da3ac5904ec097afe89ef45ad34bd4a173 but never properly documented (it predated the version-controlled docs). --- docs/yaml/functions/find_program.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/yaml/functions/find_program.yaml b/docs/yaml/functions/find_program.yaml index a1dbb41..c0c13d2 100644 --- a/docs/yaml/functions/find_program.yaml +++ b/docs/yaml/functions/find_program.yaml @@ -46,15 +46,17 @@ description: | posargs: program_name: - type: str - description: The name of the program to search + type: str | file + description: | + The name of the program to search, or a [[@file]] object to be used + without searching. varargs: name: fallback - type: str + type: str | file since: 0.37.0 description: | - These parameters are used as fallback strings to search for. + These parameters are used as fallback names to search for. This is meant to be used for cases where the program may have many alternative names, such as `foo` and `foo.py`. The function will check for the arguments one by one and the -- cgit v1.1