Skip to content

Commit 0dc639f

Browse files
committed
Add 'watch' target for just
1 parent 0baede2 commit 0dc639f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

justfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ docker-image-run:
115115
# send request to the app's HTTP endpoint (requires running container)
116116
send-request-to-app:
117117
curl http://localhost:8123/status
118+
119+
# watch sources for changes and trigger a rebuild (requires https://github.com/watchexec/watchexec)
120+
watch:
121+
# Watch all go files in the current directory and all subdirectories for
122+
# changes. If something changed, re-run the build.
123+
@watchexec -e go -- just build

0 commit comments

Comments
 (0)