Phase 1: terminal output overhaul - result summary, severity table, --quiet/--no-color#118
Merged
Merged
Conversation
…-quiet/--no-color
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.
Summary
Reworks DockSec's terminal output into a clean, consistent result summary and fixes the
long-standing progress-bar and exit-code issues. Scanning logic is unchanged.
Changes
New output layer (
docksec/output.py)A single module owns the look of everything printed to the terminal: one shared Rich
console, section/status helpers, a box-drawing severity table, the score line, a
"Quick take" action block, the report list, and a suggested next command. No emoji;
structure comes from color and box-drawing borders only.
Result summary
Every scan now ends with: a severity table (Critical/High/Medium/Low), the security
score with a color-coded rating, a Quick take highlighting the most important findings,
the generated reports, and a suggested next command.
Fixed
silently; the CLI renders one report line from the returned paths).
misleading "Analysis complete!".
Added
--quiet- reduce output to warnings, errors, and the result summary.--no-color- disable colored output (also honors theNO_COLORenv var).Testing
ruff check .passes.pytest: 102 passed (newtest_output.py; updated scanner/CLI tests).--quiet,--no-color(0 ANSI escapes), and--compose.Notes
error-path troubleshooting prints in
docker_scannerstill useprint(); routingthose is a low-priority follow-up.
--severity/--fail-on/--json-to-stdout remain Phase 2.