Skip to content

feat(watch): pass --filter through to watch loop#688

Merged
Chemaclass merged 1 commit into
mainfrom
feat/682-watch-filter
Jun 3, 2026
Merged

feat(watch): pass --filter through to watch loop#688
Chemaclass merged 1 commit into
mainfrom
feat/682-watch-filter

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

Related #682

bashunit watch re-ran everything on each change and mishandled forwarded flags, so --filter could not be used to narrow the watch loop.

💡 Changes

  • Parse watch arguments so the path can appear in any position
  • Forward -f/--filter (and its value) plus other flags to each underlying test run
  • Fix a quoting bug that passed extra args with literal escaped quotes

bashunit::main::cmd_watch now parses its arguments so the path can
appear in any position and -f/--filter (with its value) plus other
flags are forwarded to each underlying test run. Also fixes a quoting
bug that passed extra args with literal escaped quotes. Bash 3.0+
compatible.

Closes #682
@Chemaclass Chemaclass added the enhancement New feature or request label Jun 3, 2026
@Chemaclass Chemaclass self-assigned this Jun 3, 2026
@Chemaclass Chemaclass merged commit efd9b35 into main Jun 3, 2026
30 checks passed
@Chemaclass Chemaclass deleted the feat/682-watch-filter branch June 3, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant