Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a --streaming-stdin option to the lens command to enable streaming of stdin data instead of loading the entire input into a temporary file before displaying. This aligns with the project's performance goals by avoiding unnecessary buffering for stdin input when the user wants immediate visualization.

Key changes:

  • Added --streaming-stdin flag that bypasses the util::process_input buffering for stdin
  • Updated csvlens dependency to version b407076 which includes support for streaming stdin
  • Added validation to ensure --streaming-stdin is only used with stdin input (not with file arguments)

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/cmd/lens.rs Added --streaming-stdin flag, input validation, conditional processing logic to bypass buffering when streaming is enabled, and field alignment improvements in Args struct
Cargo.toml Updated csvlens dependency from rev 67d92b7 to b407076 to support the new streaming feature
Cargo.lock Reflects csvlens dependency update and addition of csv-core as a transitive dependency

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit f0d9d04 into master Dec 8, 2025
14 of 17 checks passed
@jqnatividad jqnatividad deleted the lens-streaming-stdin branch December 8, 2025 02:04
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.

2 participants