watchngo

module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT

README

Watch'n'Go

  • Watch a single file
  • Watch files recursively in a directory, with an optional pattern
  • Store configuration in INI file or use only the command line
  • Run a command on modifications through /bin/sh -c <command> by default
  • Can output on stdout so you do whatever you want (fswatch-like)

Usage

watchngo [-conf watchngo.ini] [-command <your command> -match <match> [-filter <filter>] [-debug] [-output unixshell|raw|stdout]]

The configuration file is used only when -command and -filter parameter are in use. This makes it possible to use watchngo without writing a configuration file.

Configuration

See watchngo.sample.ini configuration example.

Install

Binary

Checkout the releases binaries and put it somewhere in your $PATH.

Quick win with the latest release:

sudo wget https://github.com/Leryan/watchngo/releases/download/1.2.0/watchngo -O /usr/local/bin/watchngo
sudo chmod 755 /usr/local/bin/watchngo
Build from sources
git clone https://github.com/Leryan/watchngo
cd watchngo

make install

Bugs, questions, suggestions?

Ask on github.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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