Skip to content

tatthien/wacp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wacp

This cli tool watches all changes from a file and executes a provide command.

Installation

go get github.com/tatthien/wacp

For non-Go users

curl -sf https://gobinaries.com/tatthien/wacp | sh

Usage

Usage: wacp -src <source path> -dest <destination path>
  -src  extension entrypoint source (optional). Default: ./dist/index.js
  -onChange command to be executed after file changed

Examples

# Copy index.js to a new path after its content has been modified.
$ wacp -src index.js -onChange "cp index.js /new/path/index.js"

License

MIT

Copyright (c) 2022-present, Thien Nguyen

About

watch files changes and copy

Resources

License

Stars

Watchers

Forks