diff --git a/.prototools b/.prototools index ac3e1da..a8f5ecc 100644 --- a/.prototools +++ b/.prototools @@ -1,10 +1,12 @@ black = "24.3.0" k3d = "5.6.0" -tilt = "0.33.12" +k9s = "0.32.4" moon = "1.23.4" +tilt = "0.33.12" [plugins] black = "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/black/plugin.toml" k3d = "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/k3d/plugin.toml" +k9s = "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/k9s/plugin.toml" +moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml" tilt = "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/tilt/plugin.toml" -moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml" \ No newline at end of file diff --git a/k9s/README.md b/k9s/README.md new file mode 100644 index 0000000..72836c4 --- /dev/null +++ b/k9s/README.md @@ -0,0 +1,21 @@ +# k9s plugin + +[k9s](https://k9scli.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 k9s "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/k9s/plugin.toml" --global +proto install k9s +``` + +### Per-project install + +```shell +proto plugin add k9s "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/k9s/plugin.toml" +proto pin k9s latest --resolve +``` diff --git a/k9s/plugin.toml b/k9s/plugin.toml new file mode 100644 index 0000000..2be5e09 --- /dev/null +++ b/k9s/plugin.toml @@ -0,0 +1,27 @@ +# A TOML plugin for k9s: +# https://moonrepo.dev/docs/k9s/plugins#toml-plugin + +name = "k9s" +type = "cli" + +[platform.linux] +download-file = "k9s_linux_{arch}.tar.gz" +checksum-file = "checksums.txt" + +[platform.macos] +download-file = "k9s_Darwin_{arch}.tar.gz" +checksum-file = "checksums.txt" + +[platform.windows] +download-file = "k9s_Windows_{arch}.zip" +checksum-file = "checksums.txt" + +[install] +download-url = "https://github.com/derailed/k9s/releases/download/v{version}/{download_file}" + +[install.arch] +aarch64 = "arm64" +x86_64 = "amd64" + +[resolve] +git-url = "https://github.com/derailed/k9s" diff --git a/tilt/plugin.toml b/tilt/plugin.toml index af435b0..09c43dc 100644 --- a/tilt/plugin.toml +++ b/tilt/plugin.toml @@ -13,7 +13,7 @@ download-file = "tilt.{version}.mac.{arch}.tar.gz" checksum-file = "checksums.txt" [platform.windows] -download-file = "tilt.{version}.windows.{arch}.tar.gz" +download-file = "tilt.{version}.windows.{arch}.zip" checksum-file = "checksums.txt" [install]