-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add -w/--watchPaths
for subcommand gf run
#3009
Conversation
Live reload supports files specified using the "-w" parameter in addition to Go files. 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 Fixes gogf#2822
Codecov ReportAll modified lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3009 +/- ##
==========================================
- Coverage 77.65% 77.62% -0.03%
==========================================
Files 647 647
Lines 54666 54666
==========================================
- Hits 42449 42434 -15
- Misses 10059 10066 +7
- Partials 2158 2166 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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
Live reload supports files specified using the "-w" parameter in addition to Go files.
Usage Example:
Watch one file
$ gf run main.go -w manifest/config/config.yaml
Watch multiple files, seprated by commas
$ gf run main.go -w manifest/config/config.yaml,otherpath/otherfile
Fixes #2822