From abb16e9a0bfade9785f22232e3dee291363382fa Mon Sep 17 00:00:00 2001 From: banst Date: Wed, 7 Feb 2024 18:21:30 +0100 Subject: [PATCH 1/2] chore: add proto plugin --- proto-plugin.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 proto-plugin.toml diff --git a/proto-plugin.toml b/proto-plugin.toml new file mode 100644 index 00000000..e47d3b62 --- /dev/null +++ b/proto-plugin.toml @@ -0,0 +1,25 @@ +name = "timoni" +type = "cli" + +[platform.linux] +bin-path = "timoni" +download-file = "timoni_{version}_linux_{arch}.tar.gz" + +[platform.macos] +bin-path = "timoni" +download-file = "timoni_{version}_darwin_{arch}.tar.gz" + +[platform.windows] +bin-path = "timoni.exe" +download-file = "timoni_{version}_windows_{arch}.zip" + +[install] +checksum-url = "https://github.com/stefanprodan/timoni/releases/download/v{version}/timoni_{version}_checksums.txt" +download-url = "https://github.com/stefanprodan/timoni/releases/download/v{version}/{download_file}" + +[install.arch] +aarch64 = "arm64" +x86_64 = "amd64" + +[resolve] +git-url = "https://github.com/stefanprodan/timoni" From 04adbe30d01a96882536bf7bfa651b96d4c2de0b Mon Sep 17 00:00:00 2001 From: banst Date: Sun, 11 Feb 2024 19:21:03 +0100 Subject: [PATCH 2/2] docs: add proto documentation --- docs/install.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/install.md b/docs/install.md index a3e00cc4..e0c501a9 100644 --- a/docs/install.md +++ b/docs/install.md @@ -62,6 +62,18 @@ The AMD64 and ARM64 binaries can be downloaded from GitHub [releases](https://gi zypper install timoni-fish-completion zypper install timoni-zsh-completion ``` +=== "proto" + + Manage multiple versions with [proto](https://moonrepo.dev/proto) for all supported systems: + + ```toml + # .prototools file + + timoni = "0.19.0" + + [plugins] + timoni = "source:https://raw.githubusercontent.com/stefanprodan/timoni/main/proto-plugin.toml" + ``` === "from source"