file-watch-sync

command module
v0.0.0-...-856f16b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

file-watch-sync

cli tool to configure directory to watch using a PUB SUB pattern.

Building

make install

Usage:

go install github.com/gedw99/file-watch-sync@latest

Examples

In example folder:

make run

file-watch-sync -config /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml
/Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example
Indexing: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, CHMOD
Checksuming: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, CHMOD
Indexing: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, WRITE
Checksuming: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, WRITE
Config file changed: config.toml
Indexing: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, CHMOD
Checksuming: /Users/apple/workspace/go/src/github.com/gedw99/file-watch-sync/example/config.toml, CHMOD

Deps

github.com/fsnotify/fsnotify

github.com/spf13/viper

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