Skip to content

Add summary output to find command#49

Merged
dblock merged 3 commits into
masterfrom
fix/find-summary-output
Apr 12, 2026
Merged

Add summary output to find command#49
dblock merged 3 commits into
masterfrom
fix/find-summary-output

Conversation

@dblock
Copy link
Copy Markdown
Owner

@dblock dblock commented Apr 12, 2026

Fixes #38.

Problem

fui find produced no output when all imports were in use, leaving users with no indication the command had run or completed successfully.

Change

The find command now always prints a summary line:

  • Found N unused header(s). when unused headers are detected
  • No unused imports found. when everything is in use

Example output

$ fui find --path MyProject/
unused_class.h
Found 1 unused header(s).
$ fui find --path MyProject/
No unused imports found.

Previously, `fui find` produced no output when all imports were in use,
leaving users wondering if the command ran at all.

Now prints:
- "Found N unused header(s)." when unused headers are found
- "No unused imports found." when everything is in use

Fixes #38.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 12, 2026

Danger Report

No issues found.

View run

dblock and others added 2 commits April 12, 2026 10:38
"Found 1 unused header." and "Found 2 unused headers." instead of
"Found N unused header(s)."

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock dblock merged commit c09c651 into master Apr 12, 2026
5 checks passed
@dblock dblock deleted the fix/find-summary-output branch April 12, 2026 14:42
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.

Cannot work

1 participant