Add selectors to Downloader service definitions (#46638)

This commit is contained in:
Franck Nijhof 2021-02-18 12:24:50 +01:00 committed by GitHub
parent c8c3ce4172
commit 4e93a0c774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,28 @@
download_file: download_file:
description: Downloads a file to the download location. description: Downloads a file to the download location
fields: fields:
url: url:
name: URL
description: The URL of the file to download. description: The URL of the file to download.
required: true
example: "http://example.org/myfile" example: "http://example.org/myfile"
selector:
text:
subdir: subdir:
name: Subdirectory
description: Download into subdirectory. description: Download into subdirectory.
example: "download_dir" example: "download_dir"
selector:
text:
filename: filename:
name: Filename
description: Determine the filename. description: Determine the filename.
example: "my_file_name" example: "my_file_name"
selector:
text:
overwrite: overwrite:
name: Overwrite
description: Whether to overwrite the file or not. description: Whether to overwrite the file or not.
example: "false" default: false
selector:
boolean: