कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

entr

gumadeiras द्वारा

CLI Utilities
1.8kclawskills.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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक