Skip to content

A CLI tool for running a command when files in a target directory change.

Notifications You must be signed in to change notification settings

johnmatthiggins/fmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Monitor

A command that watches the current directory for changes and runs a shell command when changes are detected.

Usage:
  fmon [options] [files...]

OPTIONS
  -E string
    	The match expression. If a change occurs in a file that matches this regex then the command will be run.
  -c string
    	The shell command to run.
  -h	The help flag.
  -n duration
    	The amount of time between checking the watched files for changes. (default 1s)

TODO

  • Figure out how to close all child processes when SIGTERM is received.
  • Add --help flag.
  • Refine .gitignore functionality.
  • Kill and rerun long running processes.
  • Move from polling interval architecture to asynchronous event monitoring architecture.

About

A CLI tool for running a command when files in a target directory change.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published