ci: add GitHub Actions smoke-test workflow#3
Merged
Merged
Conversation
- Extracted counting logic into a dedicated Counter class and argument parsing into an Options class. - The Counter class now handles all metrics counting in a single pass, while Options handles flag parsing with support for multiple concurrent flags. - All metrics are enabled by default, when no flags are specified. - Added header documentation on each method Signed-off-by: MohammadRokib <rokibk548@gmail.com>
- Implement support for reading from standard input when no filename is provided. - Refactor Counter to use a new CountingInputStream wrapper that tracks bytes read, enabling all four metrics (bytes, lines, words, chars) to be counted in a single pass regardless of input source. - Fix null filename output in printResults when reading from stdin Signed-off-by: MohammadRokib <rokibk548@gmail.com>
Adds a detailed README.md covering features, installation, usage examples, architecture, and environment notes. Includes guides for compiling with javac, running the tool with various flags, and notes for PowerShell users on Windows. Signed-off-by: MohammadRokib <rokibk548@gmail.com>
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.
No description provided.