Skip to content

Commit

Permalink
Merge pull request #339 from b4nst/tools/add-proto-plugin
Browse files Browse the repository at this point in the history
chore: add proto plugin
  • Loading branch information
stefanprodan authored Feb 17, 2024
2 parents 410b7e4 + 04adbe3 commit 58c09c2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ The AMD64 and ARM64 binaries can be downloaded from GitHub [releases](https://gi
zypper install timoni-fish-completion
zypper install timoni-zsh-completion
```
=== "proto"

Manage multiple versions with [proto](https://moonrepo.dev/proto) for all supported systems:

```toml
# .prototools file

timoni = "0.19.0"

[plugins]
timoni = "source:https://raw.githubusercontent.com/stefanprodan/timoni/main/proto-plugin.toml"
```

=== "from source"

Expand Down
25 changes: 25 additions & 0 deletions proto-plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name = "timoni"
type = "cli"

[platform.linux]
bin-path = "timoni"
download-file = "timoni_{version}_linux_{arch}.tar.gz"

[platform.macos]
bin-path = "timoni"
download-file = "timoni_{version}_darwin_{arch}.tar.gz"

[platform.windows]
bin-path = "timoni.exe"
download-file = "timoni_{version}_windows_{arch}.zip"

[install]
checksum-url = "https://github.com/stefanprodan/timoni/releases/download/v{version}/timoni_{version}_checksums.txt"
download-url = "https://github.com/stefanprodan/timoni/releases/download/v{version}/{download_file}"

[install.arch]
aarch64 = "arm64"
x86_64 = "amd64"

[resolve]
git-url = "https://github.com/stefanprodan/timoni"

0 comments on commit 58c09c2

Please sign in to comment.