8000 GitHub - igm/watchfs: File system monitoring tool that executes a command after each change
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

igm/watchfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WatchFS

WatchFS is a tool that monitors file system for changes and runs specified command after the change.

Install

The tool can be installed using "go get" command:

  $ go get -u github.com/igm/watchfs

Usage

Simple notification after any change on the file system:

  $ watchfs echo "change!!!"

As the original purpose of this tool was to execute go tests automatically after the source code change the format to filter notification for *.go files can following:

  $ watchfs -f "\.go$" go test 

To specify a different time wait period after a change (or set of changes) occurs use timeout parameter:

  $ watchfs -t 250ms go test

For the full ist of available parameters and the defaults run command without any parameters:

  $ watchfs

Limitations

Current version supports shallow directory monitoring only. Recursive file system monitoring is not supported.

Timeout

Usually file system emits several various events when editing a file in a editor. For that purpose timeout parameter defines how 5677 long to wait before executing the command. The wait period starts again after any filesystem event.

About

File system monitoring tool that executes a command after each change

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0