Updated downloadRelease (markdown)

Pk11
2020-11-01 15:48:21 -06:00
parent 6fea3c54bc
commit f8a744a584
+13 -12
@@ -1,4 +1,4 @@
The Function `downloadRelease` contains 4 Parameters, but it can have 5, if you like to include `prereleases` as well.
The `downloadRelease` function has 4 parameters, and 1 optional one. It downloads a file from a GitHub repository's releases.
`repo` -> The Repository from which to download.
@@ -6,17 +6,18 @@ The Function `downloadRelease` contains 4 Parameters, but it can have 5, if you
`output` -> Where should the File be placed?
*optional* `includePrereleases` -> `true / false`!
*optional* `includePrereleases` -> `true / false`, defaults to false.
`message` -> The Message which should be displayed while downloading.
You can find an example here:
```
{
"type": "downloadRelease",
"repo": "Universal-Team/Universal-Updater",
"file": "Universal-Updater.cia",
"output": "sdmc:/Universal-Updater.cia",
"includePrereleases": false,
"message": "Downloading Universal-Updater.cia"
}
Example:
```json
{
"type": "downloadRelease",
"repo": "Universal-Team/Universal-Updater",
"file": "Universal-Updater.cia",
"output": "sdmc:/Universal-Updater.cia",
"includePrereleases": false,
"message": "Downloading Universal-Updater.cia"
}
```