← 返回
数据分析 中文

entr

Run arbitrary commands when files change. Useful for watching files and triggering builds or tests.
当文件变更时执行任意命令。适用于监视文件并触发构建或测试。
gumadeiras
数据分析 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 2,624
下载
💾 68
安装
1
版本
#latest

概述

entr (Event Notify Test Runner)

A utility for running arbitrary commands when files change.

Usage

entr takes a list of filenames from standard input and executes the utility specified as the first argument.

Syntax

<file_listing_command> | entr <utility> [arguments]

Options

  • -c: Clear the screen before invoking the utility.
  • -r: Reload a persistent child process (e.g., a server).
  • -s: Evaluate the first argument using the interpreter specified by SHELL.

Examples

Rebuild project when sources change:

find src/ -name "*.c" | entr make

Run tests when JS files change:

git ls-files | grep '\.js$' | entr npm test

Auto-reload a Node server:

ls *.js | entr -r node app.js

Agent Notes

entr blocks the terminal. When using it as an agent:

  1. Use process tool to run it in the background if you need to do other things.
  2. Or use it for a quick "watch mode" session where you intend to monitor output for a while.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 14:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,932
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,774
developer-tools

browsh

gumadeiras
现代文本浏览器,使用无头 Firefox 在终端渲染网页。
★ 8 📥 8,819