-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |