Skip to content

ci: add GitHub Actions smoke-test workflow#3

Merged
MohammadRokib merged 4 commits into
masterfrom
dev
Jul 15, 2026
Merged

ci: add GitHub Actions smoke-test workflow#3
MohammadRokib merged 4 commits into
masterfrom
dev

Conversation

@MohammadRokib

Copy link
Copy Markdown
Owner

No description provided.

- 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>
@MohammadRokib
MohammadRokib merged commit 3b9d9d2 into master Jul 15, 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