Skip to content

a file and folder watcher that runs commands on changes

Notifications You must be signed in to change notification settings

triole/eagle-eye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eagle Eye build test

Synopsis

A folder watcher that runs commands on change of files or folders. Inspired and based on watcher but with more intuitive command line flags and logging support.

Usage

# simple usage, watch current dir and run 'ls -la'
ee ls -la

# pass events path to the command
ee cat {{.file}}

# spectate mode, just prints changes, does not execute a command
ee -s

# filter and watch a specific folder
# NOTE: flags always have to be in front of the command
ee -r .md$ -f /home/user/my_markdowns ls -lah

# get a list of available variables
ee -n

Variables

�[36mINFO   �[0m[2024-09-30 10:17:25.348 CEST] Watch folder                                  �[36maction�[0m=just spectate �[36mfolder�[0m=/home/olaf/rolling/golang/projects/eagle-eye/src �[36mlog-file�[0m=/dev/stdout �[36mlog-json�[0m=false �[36mlog-level�[0m=info �[36mlog-no-colours�[0m=false

The following vars are available:

  {{.file}}	file that triggered the event
  {{.folder}}	folder of the file that triggered the event

Disclaimer

Warning. Use this software at your own risk. I may not be hold responsible for any data loss, starving your kittens or losing the bling bling powerpoint presentation you made to impress human resources with the efficiency of your employee's performance.

About

a file and folder watcher that runs commands on changes

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages