Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
-w/--watchPaths
for subcommand gf run
Live reload supports files specified using the "-w/--watchPaths" parameter in addition to Go files. Help message for `gf run -w`: ```text -w, --watchPaths watch additional paths for live reload, separated by ",". i.e. "manifest/config/*.yaml" ``` Usage Example: 1) Watch one file $ gf run main.go -w manifest/config/config.yaml 2) Watch multiple files, seprated by commas $ gf run main.go -w manifest/config/config.yaml,otherpath/otherfile 3) Watch wildcard file $ gf run main.go -w "manifest/config/*.yaml" Fixes gogf#2822
- Loading branch information