From 1fec0fba6cf9016811cf0dfe74b09ba2a61fbc8d Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Thu, 13 Jun 2024 10:35:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20add=20mise=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mise/README.md | 21 +++++++++++++++++++++ mise/plugin.toml | 28 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 mise/README.md create mode 100644 mise/plugin.toml diff --git a/mise/README.md b/mise/README.md new file mode 100644 index 0000000..cf5f0a5 --- /dev/null +++ b/mise/README.md @@ -0,0 +1,21 @@ +# mise plugin + +[mise](https://misecli.io) plugin for [proto](https://github.com/moonrepo/proto). + +## Installation + +This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running: + +### Global install + +```shell +proto plugin add mise "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/mise/plugin.toml" --global +proto install mise +``` + +### Per-project install + +```shell +proto plugin add mise "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/mise/plugin.toml" +proto pin mise latest --resolve +``` diff --git a/mise/plugin.toml b/mise/plugin.toml new file mode 100644 index 0000000..4f5223a --- /dev/null +++ b/mise/plugin.toml @@ -0,0 +1,28 @@ +# A TOML plugin for k9s: +# https://moonrepo.dev/docs/proto/plugins#toml-plugin + +name = "mise" +type = "cli" + +[platform.linux] +download-file = "mise-v{version}-linux-{arch}" +checksum-file = "SHASUMS256.txt" + +[platform.macos] +download-file = "mise-v{version}-macos-{arch}" +checksum-file = "SHASUMS256.txt" + +[platform.windows] +download-file = "mise-v{version}-win-{arch}.zip" +checksum-file = "SHASUMS256.txt" + +[install] +download-url = "https://github.com/jdx/mise/releases/download/v{version}/{download_file}" + +[install.arch] +aarch64 = "arm64" +x86_64 = "x64" +armv7 = "armv7" + +[resolve] +git-url = "https://github.com/jdx/mise"