跳到正文
TakoAPI
返回技能列表

entr

由 gumadeiras 提供

CLI Utilities
1.8k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Run arbitrary commands when files change.

描述

该技能的功能

entr watches a list of files and re-runs a specified command whenever any of those files change. It reads filenames from stdin and blocks the terminal while monitoring.

entr requires no configuration files or daemons, making it faster to set up than tools like nodemon or watchman for ad-hoc watch tasks.

何时使用

  • Rebuild a C project automatically when source files change
  • Re-run test suite on every JavaScript file save
  • Auto-reload a Node.js server when app files are modified
  • Trigger a linter on file changes during development
  • Watch config files and restart a service on edits

示例工作流

输入

User asks: watch all JS files in the repo and re-run tests on save

智能体
  1. 1

    List tracked files using git ls-files

  2. 2

    Pipe output through grep to filter .js files

  3. 3

    Pass the file list to entr with npm test as the command

  4. 4

    Run the full pipeline in the background using the process tool

  5. 5

    Monitor output for test results as files change

输出

entr watches the matched files and executes npm test each time a change is detected

安装

clawhub install gumadeiras/entr

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接