• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / valkyrja-java / 33826959756
100%

Build:
DEFAULT BRANCH: 26.x
Ran 04 Sep 2026 01:47AM UTC
Jobs 1
Files 653
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2026 01:45AM UTC coverage: 100.0%. Remained the same
33826959756

push

github

web-flow
[Cli] fix: Write CLI output to the configured file and stream (#177)

# Description

Write a CLI message to the filepath and to the stream the output holds.
`FileOutput` and `StreamOutput` overrode `outputMessage` with an empty
body, so
a command that directed its output to a file or to a stream lost every
message
and still reported success.

Each class now writes the formatted text the base class prints, and
wraps the
`IOException` a failed write raises in a component throwable.
`InputHandler`
routes a write throwable to the `ThrowableCaught` middleware, registers
the
recovery output in the container, and falls back to an output that
prints, so
the process still runs the exit middleware.

Every middleware stage the handler drives now runs under a guard,
because a
middleware that threw took the exit path with it. The read of the exit
code
carries a guard as well, because an output supplies that value. The code
the
output reports still reaches `Exiter.exit`.

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [x] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

## Changes

- **`cli/interaction/output/FileOutput.java`** — appends the formatted
text to the filepath, and wraps a failed write
- **`cli/interaction/output/StreamOutput.java`** — writes the formatted
text to the stream, and wraps a failed write
- **`cli/interaction/throwable/exception/`** — adds the file write and
stream write throwables
- **`cli/server/handler/InputHandler.java`** — routes a write throwable
to the `ThrowableCaught` middleware, guards the dispatch in `handle` and
the `ProcessExiting` stage, and falls back to an output that prints
- **`cli/README.md`** — documents the write path, the thro... (continued)

1895 of 1895 branches covered (100.0%)

Branch coverage included in aggregate %.

77 of 77 new or added lines in 5 files covered. (100.0%)

6936 of 6936 relevant lines covered (100.0%)

4.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33826959756.1 04 Sep 2026 01:47AM UTC 653
100.0
GitHub Action Run
Source Files on build 33826959756
  • Tree
  • List 653
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33826959756
  • a7001d26 on github
  • Prev Build on 26.x (#33777946245)
  • Next Build on 26.x (#33829946958)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc