Skip to content

Commit

Permalink
Merge pull request #7 from appthrust/yq
Browse files Browse the repository at this point in the history
feat: 🎸 add yq plugin
  • Loading branch information
kahirokunn authored Jun 13, 2024
2 parents 399839f + 431f2ff commit 4ff6cb5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions yq/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yq plugin

[yq](https://yqcli.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 yq "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/yq/plugin.toml" --global
proto install yq
```

### Per-project install

```shell
proto plugin add yq "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/yq/plugin.toml"
proto pin yq latest --resolve
```
27 changes: 27 additions & 0 deletions yq/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A TOML plugin for yq:
# https://moonrepo.dev/docs/proto/plugins#toml-plugin

name = "yq"
type = "cli"

[platform.linux]
download-file = "yq_linux_{arch}"
checksum-file = "checksums"

[platform.macos]
download-file = "yq_darwin_{arch}"
checksum-file = "checksums"

[platform.windows]
download-file = "yq_windows_{arch}.exe"
checksum-file = "checksums"

[install]
download-url = "https://github.com/mikefarah/yq/releases/download/v{version}/{download_file}"

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

[resolve]
git-url = "https://github.com/mikefarah/yq"

0 comments on commit 4ff6cb5

Please sign in to comment.