Help us shape the future of Go! Take the 2026 Go Developer Survey

wrun

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 13 Imported by: 0

README

wrun

wrun is a tool to run commands whenever the files in a directory change.

This is still an early project and the API is not stable, i.e., breaking changes might happen.

Installing

You can install it using go

go get -u github.com/efreitasn/wrun

or download one of the binaries available on the releases page.

How to use

Add a wrun.json file with the following structure in the directory to be watched.

{
  "PRECMD": [
    "sleep",
    "100"
  ],
  "CMD": [
    "echo",
    "foobar"
  ],
  "delayToKill": 5000
}

and run

wrun

Ignored files

For now, it only ignores hidden files and directories (those start with a .).

Thanks

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