Skip to content

feat(search): --color, --null, grouped output structs#2

Merged
botirk38 merged 1 commit intomasterfrom
phase-3b-color-null
Apr 3, 2026
Merged

feat(search): --color, --null, grouped output structs#2
botirk38 merged 1 commit intomasterfrom
phase-3b-color-null

Conversation

@botirk38
Copy link
Copy Markdown
Owner

@botirk38 botirk38 commented Apr 3, 2026

Summary

  • Output: SearchOutput is split into SearchLineStyle (filename mode, heading, line numbers) and SearchRecordStyle (NUL terminators, ColorChoice).
  • CLI: -0 / --null and --color / --color=when; SearchOutputCtx is grouped into SearchModeCtx, SearchLineResolveCtx, and SearchFormatCtx.
  • Rendering: ANSI colors for path prefixes and line numbers when enabled; path-only summary modes respect --null.
  • Tests: integration_null_color smoke tests; benches, sift_profile scenarios, and fuzz target updated.

Validation

cargo fmt --all -- --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace --all-features.

- Add ColorChoice and NUL-terminated path records; ANSI colors for paths and line numbers
- Nest SearchOutput fields in SearchLineStyle and SearchRecordStyle
- CLI: argv resolution for -0/--null and --color; group SearchOutputCtx into
  SearchModeCtx, SearchLineResolveCtx, and SearchFormatCtx
- Update execute path, benches, sift_profile scenarios, and fuzz target
- Add CLI integration tests for null and color output
@botirk38 botirk38 merged commit 69fa393 into master Apr 3, 2026
4 checks passed
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