Skip to content

Conversation

@Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Aug 3, 2025

Context

Refactors ACON::Formatter::OutputStyle to not delegate to stdlib's Colorize module for now. If/when crystal-lang/crystal#16052 is merged/released we can go back to leveraging it. But for now, this PR gives the same benefit w/o having to wait for the next release.

This change allows for leveraging nested style tags, E.g.

output.puts "<error>some <info>some info</info> error</error>"
output.puts "<error>error<info>info<comment>comment</info>error</error>"

Would previously render as:
image

But now correctly renders as:
image

(Second one just so happened to work in both cases)

Supersedes #567, something got messed up with it and codecov.

Changelog

  • Add support for nested style tags

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@Blacksmoke16 Blacksmoke16 added component:console kind:enhancement New functionality to an existing feature labels Aug 3, 2025
@Blacksmoke16
Copy link
Member Author

Not sure why we're not getting a coverage report. Their UI says:

Unable to compare commits because the head commit did not upload a coverage report.

But the action logs https://github.com/athena-framework/athena/actions/runs/16709017393/job/47291188720#step:11:416 say it was successful. Maybe they're just backed up atm? 🤷.

@codecov
Copy link

codecov bot commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Components Coverage Δ
clock 100.00% <ø> (ø)
console 97.24% <100.00%> (+0.04%) ⬆️
dependency_injection 93.16% <ø> (ø)
dotenv 98.38% <ø> (ø)
event_dispatcher 95.90% <ø> (ø)
framework 98.11% <ø> (ø)
image_size 96.63% <ø> (ø)
mercure 94.94% <ø> (ø)
mime 99.37% <ø> (ø)
negotiation 97.93% <ø> (ø)
routing 98.38% <ø> (ø)
serializer 95.83% <ø> (ø)
spec 93.80% <ø> (ø)
validator 95.90% <ø> (ø)

📢 Thoughts on this report? Let us know!

@Blacksmoke16 Blacksmoke16 merged commit 8e573c9 into master Aug 4, 2025
14 checks passed
@Blacksmoke16 Blacksmoke16 deleted the handle-nested-style-tags branch August 4, 2025 16:37
PallasAthenaie pushed a commit to athena-framework/console that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:console kind:enhancement New functionality to an existing feature

Development

Successfully merging this pull request may close these issues.

2 participants