Skip to content
/ reloop Public

A simple terminal utility that helps devs run commands (eg. build commands) whenever the specifed file is changed.

License

Notifications You must be signed in to change notification settings

xZepyx/reloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

✦ Reloop ✦

A simple terminal utility that helps devs run commands (eg. build commands) whenever the specifed file is changed.


✦ Overview ✦

Reloop is a lightweight terminal utility that monitors file changes in real-time and executes custom commands whenever a file is modified. Designed for developers and sysadmins, it can run in the background as a daemon and supports logging, configurable watched files, and flexible command execution.

Features

  • Real-time file monitoring.
  • Background daemon mode (--background) to run without occupying a terminal
  • Custom commands on file change (--command "your-command")
  • Flexible file watching (--watchfile <path/complete_path_from_root>)
  • Optional logging to a file (--logfile <path/complete_path_from_root>)
  • Cross-platform compatible (Linux/macOS with minor tweaks)
  • Simple, single C++ binary—no dependencies beyond the standard library and FileWatch

✦ Installation ✦

Follow these steps to install the utility.

  1. Clone the repository:

    git clone https://github.com/xZepyx/reloop.git ~/Documents/Reloop
    cd ~/Documents/Reloop
  2. Run the installer:

    cd src && bash install.sh
    • The installer will compile and install the utility to /usr/bin/reloop
  3. Installtion complete now enjoy the power and simplicity of reloop.


✦ Usage ✦

Flags :

  • ./reloop [--background] [--logfile ] [--watchfile ] [--help]
  • --background : Run the program as a background daemon.
  • --command : Command to execute on file change (in quotes).
  • --logfile : Specify a log file to redirect output.
  • --watchfile : Specify the file to watch for changes.
  • --help : Display this help message.

✦ Contributing ✦

Contributions are welcome. When contributing:

  • Open concise issues after confirming the problem isn't caused by local machine.
  • Submit focused PRs with clear descriptions and tests where applicable.
  • Follow code structure and naming conventions used in src/.

See CONTRIBUTING.md for full contribution guidelines.


✦ Maintainer ✦


✦ Acknowledgments ✦

  • WatchFile header.
  • C++ (Obvisouly)

✦ License ✦

© 2025 xZepyx (Aditya Yadav) — Licensed under the MIT License.


About

A simple terminal utility that helps devs run commands (eg. build commands) whenever the specifed file is changed.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published