onchange

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

README

onchange

Build

Monitors changes to files in local directory and executes a command on each change event.

The utility supports:

  • Filtering names by pattern, with -name <pattern>

Examples

For example, to rebuild a Go project every time a local file has changed:

$ onchange -name "*.go" go build

To upload a binary to a remote machine, every time it's built:

$ onchange -name some_app scp some_app ${target}

To Do

  • Support monitoring of subfolders (-r option)

Questions, ideas?

Contact me at Tom Paoletti tpaoletti_JUSTDROP@users.sf.net

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