Skip to content

Commit

Permalink
Add flyctl
Browse files Browse the repository at this point in the history
  • Loading branch information
Phault committed Mar 9, 2024
1 parent 055389b commit c47673b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cmake = "3.28.3"
cosign = "2.2.3"
dagger = "0.10.0"
dprint = "0.45.0"
fly = "0.2.13"
flyctl = "0.2.13"
gitleaks = "8.18.2"
gum = "0.13.0"
hurl = "4.2.0"
Expand Down Expand Up @@ -39,6 +41,8 @@ cmake = "source:cmake/plugin.toml"
cosign = "source:cosign/plugin.toml"
dagger = "source:dagger/plugin.toml"
dprint = "source:dprint/plugin.toml"
fly = "source:flyctl/plugin.toml"
flyctl = "source:flyctl/plugin.toml"
gitleaks = "source:gitleaks/plugin.toml"
gum = "source:gum/plugin.toml"
hurl = "source:hurl/plugin.toml"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A growing collection of proto TOML plugins.
- [Cosign](cosign/README.md)
- [Dagger](dagger/README.md)
- [dprint](dprint/README.md)
- [flyctl](flyctl/README.md)
- [Gitleaks](gitleaks/README.md)
- [Gum](gum/README.md)
- [Hurl](hurl/README.md)
Expand Down
28 changes: 28 additions & 0 deletions flyctl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# flyctl plugin

[flyctl](https://github.com/superfly/flyctl) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

> [!NOTE]
> This tool is usually available both as `flyctl` and the newer `fly` alias.
>
> The instructions below assume you're using the new alias, if not replace `fly` with `flyctl`.
>
> If you need both, you'll have to register and install the plugin twice.
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 fly "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/flyctl/plugin.toml" --global
proto install fly
```

### Per-project install

```shell
proto plugin add fly "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/flyctl/plugin.toml"
proto pin fly latest --resolve
```
29 changes: 29 additions & 0 deletions flyctl/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name = "flyctl"
type = "cli"

[resolve]
git-url = "https://github.com/superfly/flyctl"
# they use yyyy.mm.dd versioning for prereleases and some ancient stable versions without downloads
version-pattern = "^v((?<major>[0-9]{1,3})\\.(?<minor>[0-9]+)\\.(?<patch>[0-9]+)(?<pre>-[0-9a-zA-Z\\.]+)?(?<build>\\+[-0-9a-zA-Z\\.]+)?)$"

[platform.linux]
download-file = "flyctl_{version}_Linux_{arch}.tar.gz"
checksum-file = "checksums.txt"
bin-path = "flyctl"

[platform.macos]
download-file = "flyctl_{version}_macOS_{arch}.tar.gz"
checksum-file = "checksums.txt"
bin-path = "flyctl"

[platform.windows]
download-file = "flyctl_{version}_Windows_{arch}.zip"
checksum-file = "checksums.txt"
bin-path = "flyctl.exe"

[install]
download-url = "https://github.com/superfly/flyctl/releases/download/v{version}/{download_file}"
checksum-url = "https://github.com/superfly/flyctl/releases/download/v{version}/{checksum_file}"

[install.arch]
aarch64 = "arm64"

0 comments on commit c47673b

Please sign in to comment.