Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 add k9s plugin #2

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading