suez

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 4 Imported by: 0

README

suez

A command line tool that executes a command periodically/reactively.

Usage

Run the command periodically according to the interval-sec
$ suez --interval-sec 60 something-command you-want
Run the command periodically if the watched file is changed while the duration of interval-sec
$ suez --interval-sec 60 --watched-file /path/to/file something-command you-want
Run the command immediately if the watched file is changed
$ suez --watched-file /path/to/file something-command you-want

Author

moznion (moznion@gmail.com)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opt *RunOpt) error

Types

type RunOpt

type RunOpt struct {
	CmdGenerator    func() *exec.Cmd
	Interval        time.Duration
	WatchedFilePath string
	ExitOnError     bool
}

func (*RunOpt) Validate

func (o *RunOpt) Validate() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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