go-recmd

module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT

README

recmd

recmd is simple live reloading tool that doesn't require a configuration file.
This tools supports MacOS, Linux.

Installation

$ go get github.com/hatappi/go-recmd/cmd/recmd

or

https://github.com/hatappi/go-recmd/releases

Usage

$ recmd watch -h
watch path and execute command

Usage:
  recmd watch [flags] [your command]

Aliases:
  watch, w

Examples:

$ recmd watch go run main.go
$ recmd watch -p "./main.go" go run main.go
$ recmd watch --exclude testA --exclude testB go run main.go


Flags:
  -e, --exclude strings   exclude path. you can specify multiple it
  -h, --help              help for watch
  -p, --path string       watch path (default "**/*")

Global Flags:
  -v, --verbose   enable verbose
Example

The simplest way is to specify recmd watch followed by your command.
In this case, it watches change in the files under the current directory.

$ recmd watch go run cmd/http-server/main.go

If you want to specify a file to watch change, you specify --path.

$ recmd watch \
	--path "**/*.go"
	go run cmd/http-server/main.go

If you want to exclude to watch file, you specify --exclude.
This option can be specified multiple.

$ recmd watch \
	--path "**/*.go"
	--exclude "vendor/**/*.go"
	--exclude "tmp"
	go run cmd/http-server/main.go

Directories

Path Synopsis
cmd
internal
event
Package event represent change event
Package event represent change event
executor
Package executor execute command
Package executor execute command
logger/zap
Package zap manages logger
Package zap manages logger
watcher
Package watcher watch change event
Package watcher watch change event

Jump to

Keyboard shortcuts

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