Skip to content

Add configurable output modes and lockfile enforcement - #48

Merged
MikeGarde merged 3 commits into
mainfrom
output
Nov 9, 2026
Merged

MikeGarde merged 3 commits into
mainfrom
output

Conversation

@MikeGarde

Copy link
Copy Markdown
Owner

Overview

This PR introduces new CLI output modes to provide users with more control over how the application displays results. It allows for compact one-line output and a "quiet" mode to suppress live progress, making the tool more suitable for piping into other applications or automated workflows. Additionally, it improves build reliability by enforcing lockfile usage.

Changes

  • Introduced --oneline and --oneline quiet flags in the CLI arguments and configuration.
  • Implemented support for "quiet" mode to suppress live printing across ollama, openai, and stream clients.
  • Centralized LLM output reporting and statistics in src/main.rs.
  • Decoupled output formatting from the provider logic, moving it into the CLI argument handling.
  • Updated Taskfile.yaml to enforce lockfile usage for consistent dependency versions during local installations.

Testing / Validation

  • Verify that the --oneline flag correctly collapses output to a single line.
  • Confirm that --oneline quiet successfully suppresses live progress updates for various providers.
  • Ensure that builds are reproducible across different environments using the updated lockfile enforcement.

Notes / Risks

  • No significant risks identified.

Commits in this PR:

  • 37dad81 Enforce lockfile for reproducible builds
  • eb03f66 Add --oneline and --oneline quiet output modes

- Update `Taskfile.yaml` to use the lockfile during local installation.
- Ensure consistent dependency versions across environments.

Provider: lmstudio google/gemma-4-12b-qat
Tokens:   prompt=280, completion=292, total=572
Time:     9.09s
- Introduce `--oneline` and `--oneline quiet` flags in `cli_args` and `config`.
- Support "quiet" mode to suppress live printing in `ollama`, `openai`, and `stream` clients.
- Centralize LLM output reporting and statistics in `src/main.rs`.
- Move output formatting to CLI arguments to isolate local display from provider logic.

Provider: lmstudio google/gemma-4-12b-qat
Tokens:   prompt=6115, completion=3009, total=9124
Time:     30.32s
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.89030% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/main.rs 94.62% 5 Missing ⚠️
Files with missing lines Coverage Δ
src/config.rs 80.82% <100.00%> (+1.12%) ⬆️
src/llm/ollama.rs 85.20% <100.00%> (+64.95%) ⬆️
src/llm/openai.rs 80.03% <100.00%> (+35.48%) ⬆️
src/llm/stream.rs 100.00% <100.00%> (+100.00%) ⬆️
src/setup.rs 98.21% <100.00%> (+98.21%) ⬆️
src/main.rs 58.44% <94.62%> (+55.10%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Enable token usage tracking for Ollama and OpenAI streaming
- Refactor stream reading into a generic writer for testability
- Centralize report formatting and add support for optional appendices
- Add E2E tests with a mock server and expand unit tests

Provider: lmstudio google/gemma-4-12b-qat
Tokens:   prompt=11327, completion=3985, total=15312
Time:     28.18s
@MikeGarde
MikeGarde merged commit 3cb58f4 into main Nov 9, 2026
5 checks passed
@MikeGarde
MikeGarde deleted the output branch November 9, 2026 20:20
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