Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add watchexec cli #8

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"