Skip to content

Update tools.func wiki page for clarity #9017

@arian-nasr

Description

@arian-nasr

📌 Task summary

Update information for tools.func wiki page entry

📋 Task details

I was recently looking at the update sources for some of the scripts and I was trying to determine what the function fetch_and_deploy_gh_release() does. The wiki page is missing a lot of important parameters for the command.

May I suggest adding the following to the "Usage" section for the function:

https://github.com/community-scripts/ProxmoxVE/wiki/tools.func

Usage

fetch_and_deploy_gh_release <app> <repo> [mode] [version] [target] [asset_pattern]

Basic usage with defaults (tarball mode, latest version)

fetch_and_deploy_gh_release "MyApp" "owner/repository"

Install specific version as binary (.deb package)

fetch_and_deploy_gh_release "MyApp" "owner/repo" "binary" "v2.1.0"

Install prebuild archive with custom target and asset pattern

fetch_and_deploy_gh_release "MyApp" "owner/repo" "prebuild" "latest" "/usr/local/myapp" "*-linux-amd64.tar.gz"

I suggest these changes as they helped me understand the function better and maybe it can help someone else too 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions