gbw

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

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 17 Imported by: 0

README

Go Build Watch (gbw)

This tools is command line tool.
If save the source code, running for any command.

Example

$gbw --command "make && make install" --dir "./"
$gbw --command "gb build && ./bin/process" --dir "./"

Install

$ go get github.com/kazu1107/gbw

Options

  • -command
    run command

  • -dir
    watching directory dirpath (default "./")

  • -ext
    extension list (ex "png,gif")

  • -help show help

  • -wf
    wait first

  • -debug
    output debugging log

  • event options

    • created:
      -c enabled (default)
      -nc disabled
    • writed:
      -w enabled (default)
      -nw disabled
    • removed:
      -r enabled (default)
      -nr disabled
    • renamed:
      -n enabled (default)
      -nn disabled
    • change permission:
      -p enabled
      -np disabled (default)

Support Command Syntax

  • && "cmd1 && cmd2"
    if cmd1 success, run cmd2

  • || "cmd1 || cmd2"
    if cmd1 failed, run cmd2

  • ; "cmd1 ; cmd2" cmd1 run after, run cmd2

If you want complicated processing you should write a script

Trouble Shooting

error "Too meny open files"

The following is helpful
EN: http://superuser.com/questions/830149/os-x-yosemite-too-many-files-open
JP: http://ysh.hateblo.jp/entry/2015/11/26/211134

Fundamental revision requires refurbishment of fsnotfy. (_)

Update

  • 2017.03.10 ver 0.2
    add process for first run.

  • 2016.12.22
    Created ver 0.1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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