[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5592":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},5592,"watchexec","watchexec\u002Fwatchexec","Executes commands in response to file modifications","https:\u002F\u002Fwatchexec.github.io",null,"Rust",7017,191,27,47,0,6,58,3,37.85,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31],"command-line","developer-tools","file-watchers","linux","macos","rust","windows","2026-06-12 02:01:12","[![CI status on main branch](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fwatchexec\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fwatchexec\u002Factions\u002Fworkflows\u002Ftests.yml)\n\n# Watchexec\n\nSoftware development often involves running the same commands over and over. Boring!\n\n`watchexec` is a simple, standalone tool that watches a path and runs a command whenever it detects modifications.\n\nExample use cases:\n\n* Automatically run unit tests\n* Run linters\u002Fsyntax checkers\n* Rebuild artifacts\n\n\n## Features\n\n* Simple invocation and use, does not require a cryptic command line involving `xargs`\n* Runs on OS X, Linux, and Windows\n* Monitors current directory and all subdirectories for changes\n* Coalesces multiple filesystem events into one, for editors that use swap\u002Fbackup files during saving\n* Loads `.gitignore` and `.ignore` files\n* Uses process groups to keep hold of forking programs\n* Provides the paths that changed in environment variables or STDIN\n* Does not require a language runtime, not tied to any particular language or ecosystem\n* [And more!](.\u002Fcrates\u002Fcli\u002F#features)\n\n\n## Quick start\n\nWatch all JavaScript, CSS and HTML files in the current directory and all subdirectories for changes, running `npm run build` when a change is detected:\n\n    $ watchexec -e js,css,html npm run build\n\nCall\u002Frestart `python server.py` when any Python file in the current directory (and all subdirectories) changes:\n\n    $ watchexec -r -e py -- python server.py\n\nMore usage examples: [in the CLI README](.\u002Fcrates\u002Fcli\u002F#usage-examples)!\n\n## Install\n\n\u003Ca href=\"https:\u002F\u002Frepology.org\u002Fproject\u002Fwatchexec\u002Fversions\">\u003Cimg align=\"right\" src=\"https:\u002F\u002Frepology.org\u002Fbadge\u002Fvertical-allrepos\u002Fwatchexec.svg\" alt=\"Packaging status\">\u003C\u002Fa>\n\n- With [your package manager](.\u002Fdoc\u002Fpackages.md) for Arch, Debian, Homebrew, Nix, Scoop, Chocolatey…\n- From binary with [Binstall](https:\u002F\u002Fgithub.com\u002Fcargo-bins\u002Fcargo-binstall): `cargo binstall watchexec-cli` \u003C!-- this line does NOT contain a typo -->\n- As [pre-built binary package from Github](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fwatchexec\u002Freleases\u002Flatest)\n- From source with Cargo: `cargo install --locked watchexec-cli`\n\nAll options in detail: [in the CLI README](.\u002Fcrates\u002Fcli\u002F#installation),\nin the online help (`watchexec -h`, `watchexec --help`, or `watchexec --manual`),\nand [in the manual page](.\u002Fdoc\u002Fwatchexec.1.md).\n\n\n## Augment\n\nWatchexec pairs well with:\n\n- [checkexec](https:\u002F\u002Fgithub.com\u002Fkurtbuilds\u002Fcheckexec): to run only when source files are newer than a target file\n- [just](https:\u002F\u002Fgithub.com\u002Fcasey\u002Fjust): a modern alternative to `make`\n- [systemfd](https:\u002F\u002Fgithub.com\u002Fmitsuhiko\u002Fsystemfd): socket-passing in development\n\n## Extend\n\n- [watchexec library](.\u002Fcrates\u002Flib\u002F): to create more specialised watchexec-powered tools.\n  - [watchexec-events](.\u002Fcrates\u002Fevents\u002F): event types for watchexec.\n  - [watchexec-signals](.\u002Fcrates\u002Fsignals\u002F): signal types for watchexec.\n  - [watchexec-supervisor](.\u002Fcrates\u002Fsupervisor\u002F): process lifecycle manager (the _exec_ part of watchexec).\n- [clearscreen](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fclearscreen): to clear the (terminal) screen on every platform.\n- [command group](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fcommand-group): to run commands in process groups.\n- [ignore files](.\u002Fcrates\u002Fignore-files\u002F): to find, parse, and interpret ignore files.\n- [project origins](.\u002Fcrates\u002Fproject-origins\u002F): to find the origin(s) directory of a project.\n- [notify](https:\u002F\u002Fgithub.com\u002Fnotify-rs\u002Fnotify): to respond to file modifications (third-party).\n\n### Downstreams\n\nSelected downstreams of watchexec and associated crates:\n\n- [cargo watch](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fcargo-watch): a specialised watcher for Rust\u002FCargo projects.\n- [cargo lambda](https:\u002F\u002Fgithub.com\u002Fcargo-lambda\u002Fcargo-lambda): a dev tool for Rust-powered AWS Lambda functions.\n- [create-rust-app](https:\u002F\u002Fcreate-rust-app.dev): a template for Rust+React web apps.\n- [devenv.sh](https:\u002F\u002Fgithub.com\u002Fcachix\u002Fdevenv): a developer environment with nix-based declarative configs.\n- [dotter](https:\u002F\u002Fgithub.com\u002Fsupercuber\u002Fdotter): a dotfile manager.\n- [ghciwatch](https:\u002F\u002Fgithub.com\u002Fmercurytechnologies\u002Fghciwatch): a specialised watcher for Haskell projects.\n- [tectonic](https:\u002F\u002Ftectonic-typesetting.github.io\u002Fbook\u002Flatest\u002F): a TeX\u002FLaTeX typesetting system.\n","Watchexec 是一个响应文件修改自动执行命令的工具。它使用 Rust 语言编写，具备跨平台特性，支持 macOS、Linux 和 Windows 操作系统。其核心功能包括监控指定路径下的文件变化，并在检测到更改时运行预设命令，如自动运行单元测试、代码检查或重建项目等。此外，Watchexec 能够读取 `.gitignore` 文件以忽略特定文件，通过进程组管理保持对分叉程序的控制，并且不需要依赖任何特定的语言环境。适用于软件开发过程中需要频繁执行相同命令的场景，帮助开发者提高效率。",2,"2026-06-11 03:04:16","top_language"]