diff --git a/.prototools b/.prototools index 0f57b89..e50466c 100644 --- a/.prototools +++ b/.prototools @@ -30,6 +30,7 @@ task = "3.35.1" traefik = "2.11.0" trufflehog = "3.69.0" uv = "0.1.13" +wizer = "4.0.0" [plugins] act = "source:act/plugin.toml" @@ -63,6 +64,7 @@ task = "source:task/plugin.toml" traefik = "source:traefik/plugin.toml" trufflehog = "source:trufflehog/plugin.toml" uv = "source:uv/plugin.toml" +wizer = "source:wizer/plugin.toml" [settings] # disabled to avoid polluting their data with our testing / CI runs diff --git a/README.md b/README.md index 6369c57..a74184f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ A growing collection of proto TOML plugins. - [Traefik](traefik/README.md) - [TruffleHog](trufflehog/README.md) - [uv](uv/README.md) +- [Wizer](wizer/README.md) ## See also diff --git a/wizer/README.md b/wizer/README.md new file mode 100644 index 0000000..33e6e7f --- /dev/null +++ b/wizer/README.md @@ -0,0 +1,21 @@ +# Wizer plugin + +[Wizer](https://github.com/bytecodealliance/wizer) 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 wizer "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/wizer/plugin.toml" --global +proto install wizer +``` + +### Per-project install + +```shell +proto plugin add wizer "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/wizer/plugin.toml" +proto pin wizer latest --resolve +``` diff --git a/wizer/plugin.toml b/wizer/plugin.toml new file mode 100644 index 0000000..3650845 --- /dev/null +++ b/wizer/plugin.toml @@ -0,0 +1,20 @@ +name = "Wizer" +type = "cli" + +[resolve] +git-url = "https://github.com/bytecodealliance/wizer" + +[platform.linux] +download-file = "wizer-v{version}-{arch}-linux.tar.xz" +archive-prefix = "wizer-v{version}-{arch}-linux" + +[platform.macos] +download-file = "wizer-v{version}-{arch}-macos.tar.xz" +archive-prefix = "wizer-v{version}-{arch}-macos" + +[platform.windows] +download-file = "wizer-v{version}-{arch}-windows.zip" +archive-prefix = "wizer-v{version}-{arch}-windows" + +[install] +download-url = "https://github.com/bytecodealliance/wizer/releases/download/v{version}/{download_file}"