You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- add a global `--clear` flag across passthrough, `--shell`, and `exec
--input` modes
- clear the terminal before the initial run and each rerun only when
stdout is a TTY
- document the new contract in the with-watch README and project docs
## Testing
- cargo test -p with-watch
- cargo test
- cargo run -p with-watch -- --help
Copy file name to clipboardExpand all lines: crates/AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@
44
44
45
45
- Keep passthrough, shell, and `exec --input` command shapes stable and documented in `docs/project-with-watch.md` and `docs/crates-with-watch-foundation.md`.
46
46
- Keep default rerun filtering content-hash-based, with `--no-hash` as the documented metadata-only override.
47
+
- Keep `--clear` as a best-effort TTY-only output refresh flag; redirected or piped stdout must stay byte-for-byte clean.
47
48
- Keep shell support scoped to command-line expressions and do not silently broaden into shell-script control-flow without updating docs first.
48
49
- Keep logs sufficient to explain inferred inputs, watcher anchors, snapshot counts, and rerun causes.
49
50
- Keep public release contracts aligned across root publish-tag allowlist, `.github/workflows/release-with-watch.yml`, and Homebrew packaging assets.
All modes also accept `--clear`, which clears the terminal before the initial run and each rerun when stdout is an interactive terminal.
25
27
26
28
Use passthrough mode for a single delegated command, shell mode for simple command-line expressions that need `&&`, `||`, or `|`, and `exec --input` when you want to declare the watched files yourself.
0 commit comments