diff --git a/.prototools b/.prototools index f46e29a..c033428 100644 --- a/.prototools +++ b/.prototools @@ -11,6 +11,7 @@ dprint = "0.54.0" flux = "2.8.8" flux-operator-mcp = "0.52.0" golangci-lint = "2.12.2" +grpcurl = "1.9.3" kubeconform = "0.8.0" prek = "0.4.5" rumdl = "0.2.14" @@ -38,6 +39,7 @@ dprint = "file://./dprint/plugin.toml" flux = "file://./flux/plugin.toml" flux-operator-mcp = "file://./flux-operator-mcp/plugin.toml" golangci-lint = "file://./golangci-lint/plugin.toml" +grpcurl = "file://./grpcurl/plugin.toml" kubeconform = "file://./kubeconform/plugin.toml" prek = "file://./prek/plugin.toml" rumdl = "file://./rumdl/plugin.toml" diff --git a/grpcurl/README.md b/grpcurl/README.md new file mode 100644 index 0000000..f3397e3 --- /dev/null +++ b/grpcurl/README.md @@ -0,0 +1,13 @@ +# grpcurl plugin + +[grpcurl](https://github.com/fullstorydev/grpcurl) plugin for [proto](https://github.com/moonrepo/proto). + +## Installation + +grpcurl is not built into proto, so register this plugin, pin a version, then install: + +```shell +proto plugin add grpcurl "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/grpcurl/plugin.toml" +proto pin grpcurl latest --resolve +proto install grpcurl +``` diff --git a/grpcurl/plugin.toml b/grpcurl/plugin.toml new file mode 100644 index 0000000..3186541 --- /dev/null +++ b/grpcurl/plugin.toml @@ -0,0 +1,29 @@ +name = "grpcurl" +type = "cli" + +[resolve] +git-url = "https://github.com/fullstorydev/grpcurl" + +# Release assets use aarch64/arm64 naming on macOS; Linux x86_64 matches proto's default. +[install.arch] +aarch64 = "arm64" +x86_64 = "x86_64" + +[platform.linux] +download-file = "grpcurl_{version}_linux_{arch}.tar.gz" +checksum-file = "grpcurl_{version}_checksums.txt" +exe-path = "grpcurl" + +[platform.macos] +download-file = "grpcurl_{version}_osx_{arch}.tar.gz" +checksum-file = "grpcurl_{version}_checksums.txt" +exe-path = "grpcurl" + +[platform.windows] +download-file = "grpcurl_{version}_windows_x86_64.zip" +checksum-file = "grpcurl_{version}_checksums.txt" +exe-path = "grpcurl.exe" + +[install] +download-url = "https://github.com/fullstorydev/grpcurl/releases/download/v{version}/{download_file}" +checksum-url = "https://github.com/fullstorydev/grpcurl/releases/download/v{version}/{checksum_file}"