fswatch

command module
v0.0.0-...-e2cb75e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2014 License: Apache-2.0 Imports: 22 Imported by: 0

README

fswatch

Build Status Total views

fswatch is a Command line tool which watch file system event to trigger user defined commands.

fswatch will follow 3 steps.

  1. notify if file under current directory changes.
  2. filter event by .gitignore (if no .gitignore, the goto step 3)
  3. do user defined commands(passed by commands)

How to use

I will show you an example

go get github.com/shxsun/fswatch
# cd to a golang project
# ...
fswatch go test

# open a new shell, cd to the same place
touch test.go

# now fswatch should do some tests. (if nothing happens, tell me)

fswatch

Shell help

Usage:
  fswatch [OPTIONS] command [args...]

Application Options:
  -v, --verbose  Show verbose debug infomation
      --delay=   Trigger event buffer time (0.5s)
  -d, --depth=   depth of watch (3)
  -e, --ext=     only watch specfied ext file (go,py,c,rb,cpp,cxx,h)
  -p, --path=    watch path, support multi -p

Help Options:
  -h, --help     Show this help message

Documentation

Overview

utils.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL