Skip to content

Commit

Permalink
feat: 🎸 add k9s plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zimagen committed Apr 18, 2024
1 parent 84d8383 commit 5d78109
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .prototools
Original file line number Diff line number Diff line change
@@ -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"
21 changes: 21 additions & 0 deletions k9s/README.md
Original file line number Diff line number Diff line change
@@ -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
```
27 changes: 27 additions & 0 deletions k9s/plugin.toml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion tilt/plugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5d78109

Please sign in to comment.