Skip to content

feat(report): suppress footer when --top is explicitly passed#628

Merged
rocketman-code merged 1 commit intomainfrom
fix/footer-suppression
Apr 24, 2026
Merged

feat(report): suppress footer when --top is explicitly passed#628
rocketman-code merged 1 commit intomainfrom
fix/footer-suppression

Conversation

@rocketman-code
Copy link
Copy Markdown
Owner

Summary

  • The "N functions hidden" footer now only shows when the default truncation is active (user ran piano report with no --top flag)
  • When --top N is explicitly passed, the footer is suppressed
  • --all continues to show no footer (nothing hidden)

Adds show_footer: bool to format_table, threaded through resolve_display_limit and all CLI commands.

Test Plan

  • New test: format_table_no_footer_when_show_footer_false
  • All existing format tests pass with show_footer: true (preserves behavior)
  • Manual verification: default shows footer, --top 5 suppresses it, --all no footer
  • Full workspace suite green

The "N functions hidden" footer only shows when default truncation is
active (user ran piano report with no --top flag). When --top N is
explicitly passed, the footer is suppressed — the user already knows
about the flag. --all continues to show no footer (nothing hidden).

Add show_footer: bool parameter to format_table, threaded through
resolve_display_limit and all CLI commands.
@rocketman-code rocketman-code merged commit b9badae into main Apr 24, 2026
11 checks passed
@rocketman-code rocketman-code deleted the fix/footer-suppression branch April 24, 2026 06:33
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