Skip to content

Commit

Permalink
Add watchexec cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Willie Möller authored and Phault committed Jul 14, 2024
1 parent 745fb71 commit c412e50
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ task = "3.35.1"
traefik = "2.11.0"
trufflehog = "3.69.0"
uv = "0.1.13"
watchexec = "2.0.0"
wizer = "4.0.0"

[plugins]
Expand Down Expand Up @@ -68,6 +69,7 @@ task = "source:task/plugin.toml"
traefik = "source:traefik/plugin.toml"
trufflehog = "source:trufflehog/plugin.toml"
uv = "source:uv/plugin.toml"
watchexec = "source:watchexec/plugin.toml"
wizer = "source:wizer/plugin.toml"

[settings]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ A growing collection of proto TOML plugins.
- [Traefik](traefik/README.md)
- [TruffleHog](trufflehog/README.md)
- [uv](uv/README.md)
- [watchexec](watchexec/README.md)
- [Wizer](wizer/README.md)

## See also
Expand Down
21 changes: 21 additions & 0 deletions watchexec/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# watchexec plugin

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

### Per-project install

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

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

[platform.linux]
archive-prefix = "watchexec-{version}-{arch}-unknown-linux-musl"
download-file = "watchexec-{version}-{arch}-unknown-linux-musl.tar.xz"

[platform.macos]
archive-prefix = "watchexec-{version}-{arch}-apple-darwin"
download-file = "watchexec-{version}-{arch}-apple-darwin.tar.xz"

[platform.windows]
archive-prefix = "watchexec-{version}-{arch}-pc-windows-msvc"
download-file = "watchexec-{version}-{arch}-pc-windows-msvc.zip"

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

0 comments on commit c412e50

Please sign in to comment.