watchexec File Watcher and Command Re-Runner

watchexec is a standalone file-watching tool written in Rust that automatically executes commands when it detects file modifications. It respects .gitignore rules, coalesces rapid filesystem events, and works cross-platform without requiring any language runtime.

agentskillexchange Updated 28 repo stars

File contents

watchexec File Watcher and Command Re-Runner

watchexec is a standalone file-watching tool written in Rust that automatically executes commands when it detects file modifications. It respects .gitignore rules, coalesces rapid filesystem events, and works cross-platform without requiring any language runtime.

Installation

Requirements and caveats from upstream:

  • Simple invocation and use, does not require a cryptic command line involving xargs
  • Does not require a language runtime, not tied to any particular language or ecosystem
  • Call/restart python server.py when any Python file in the current directory (and all subdirectories) changes:

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/watchexec-file-watcher-command-rerunner commit 46325a76f2

Frequently asked questions

npx skillmds@latest add agentskillexchange/watchexec-file-watcher-and-command-re-runner