Skip to content

Add prefilled query option - #3

Merged
bsg62 merged 6 commits into
mainfrom
feature/prefill-query
Jul 7, 2026
Merged

Add prefilled query option#3
bsg62 merged 6 commits into
mainfrom
feature/prefill-query

Conversation

@bsg62

@bsg62 bsg62 commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Add clap-based CLI parsing with a positional path and optional -q/--query prefill flag.
  • Seed the TUI query from the flag and start the search immediately for non-empty prefilled queries.
  • Keep help/version available before the TTY guard and add CLI regression tests.

Test Plan

  • cargo fmt --manifest-path rust/Cargo.toml -- --check
  • cargo clippy --manifest-path rust/Cargo.toml -- -D warnings
  • cargo test --manifest-path rust/Cargo.toml
  • cargo run --manifest-path rust/Cargo.toml -- --help
  • cargo run --manifest-path rust/Cargo.toml -- --version
  • normal non-TTY run still exits 2 with the existing terminal error

Manual TUI smoke test still recommended:
cargo run --manifest-path rust/Cargo.toml -- . -q TODO

@bsg62
bsg62 merged commit cb0133a into main Jul 7, 2026
2 checks passed
@bsg62
bsg62 deleted the feature/prefill-query branch July 7, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant