Skip to content

narita-takeru/cmdrevive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cmdrevive

cmdrevive is auto restart command. restart trigger is file changed.

Example

cmdrevive ./htmls/ ".html$" (application) (arguments)

./htmls/ is want monitoring file changed directory. ".html$" is regex for target file name.

Requirements

  • go

Installation

$ go get github.com/narita-takeru/cmdrevive/cmd/cmdrevive

Usage

cmdrevive ./htmls/ ".html$" (start your application command)

if you want monitoring recursion directories,

Monitoring directories separate space.

cmdrevive "./htmls/ ./htmls/users ./htmls/items ./htmls/products" ".html$" (start your application command)

It's Cool schell script code.

DIRS=`find ./htmls -type d | tr "\n" " "`
cmdrevive "$DIRS" ".html$" (your application) (arguments)

About

cmdrevive is auto restart command.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages