feat: add stdin/pipe reader for command composability#11
Merged
clarabennettdev merged 1 commit intomainfrom Feb 19, 2026
Merged
feat: add stdin/pipe reader for command composability#11clarabennettdev merged 1 commit intomainfrom
clarabennettdev merged 1 commit intomainfrom
Conversation
Integrate StdinSource into the main command so users can pipe logs: cat app.log | logpilot kubectl logs -f pod | logpilot docker logs -f container | logpilot When stdin is a pipe, logpilot runs in streaming mode (no TUI), auto-detecting log format (JSON, logfmt, plain) per line and rendering styled output to stdout. Features: - Automatic pipe detection via IsPipe() - Auto-format detection per line (mixed formats supported) - Graceful signal handling (SIGINT/SIGTERM) - Long line support (up to 1MB) - Configurable backpressure (block or drop-oldest) Closes #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #9 — stdin/pipe reader for command composability.
Changes
.gitignoreto not excludecmd/logpilot/directoryUsage
Closes #9