Skip to content

Commit

Permalink
Add Pact Verifier CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Phault committed Mar 31, 2024
1 parent 2337bbd commit a5d6f66
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mkcert = "1.4.4"
ninja = "1.11.1"
octopus = "2.2.1"
oxlint = "0.2.12"
pact_verifier_cli = "1.1.1"
rattler-build = "0.13.0"
ruff = "0.3.0"
shellcheck = "0.10.0"
Expand Down Expand Up @@ -57,6 +58,7 @@ mkcert = "source:mkcert/plugin.toml"
ninja = "source:ninja/plugin.toml"
octopus = "source:octopus/plugin.toml"
oxlint = "source:oxlint/plugin.toml"
pact_verifier_cli = "source:pact_verifier_cli/plugin.toml"
rattler-build = "source:rattler-build/plugin.toml"
ruff = "source:ruff/plugin.toml"
shellcheck = "source:shellcheck/plugin.toml"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ A growing collection of proto TOML plugins.
- [Ninja](ninja/README.md)
- [oxlint](oxlint/README.md)
- [Octopus CLI](octopus/README.md)
- [Pact Verifier CLI](pact_verifier_cli/README.md)
- [rattler-build](rattler-build/README.md)
- [Ruff](ruff/README.md)
- [ShellCheck](shellcheck/README.md)
Expand Down
21 changes: 21 additions & 0 deletions pact_verifier_cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Pact Verifier CLI plugin

[Pact Verifier CLI](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli) 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 pact_verifier_cli "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/pact_verifier_cli/plugin.toml" --global
proto install pact_verifier_cli
```

### Per-project install

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

[resolve]
git-url = "https://github.com/pact-foundation/pact-reference"
version-pattern = "^pact_verifier_cli-v((?<major>[0-9]+)\\.(?<minor>[0-9]+)\\.(?<patch>[0-9]+))"

[platform.linux]
download-file = "pact_verifier_cli-linux-{arch}{libc}.gz"
checksum-file = "pact_verifier_cli-linux-{arch}{libc}.gz.sha256"
bin-path = "pact_verifier_cli-linux-{arch}{libc}"

[platform.macos]
download-file = "pact_verifier_cli-osx-{arch}.gz"
checksum-file = "pact_verifier_cli-osx-{arch}.gz.sha256"
bin-path = "pact_verifier_cli-osx-{arch}"

[platform.windows]
download-file = "pact_verifier_cli-windows-{arch}.exe.gz"
checksum-file = "pact_verifier_cli-windows-{arch}.exe.gz.sha256"
bin-path = "pact_verifier_cli-windows-{arch}"

[install]
download-url = "https://github.com/pact-foundation/pact-reference/releases/download/pact_verifier_cli-v{version}/{download_file}"
checksum-url = "https://github.com/pact-foundation/pact-reference/releases/download/pact_verifier_cli-v{version}/{checksum_file}"

[install.libc]
gnu = ""
musl = "-musl"

0 comments on commit a5d6f66

Please sign in to comment.