Skip to content

restructure Pi tool formatting into per-method dispatch with generic fallback#1012

Draft
LasmarKhalifa wants to merge 1 commit into
mainfrom
06-30/pi-tool-formatter-foundation
Draft

restructure Pi tool formatting into per-method dispatch with generic fallback#1012
LasmarKhalifa wants to merge 1 commit into
mainfrom
06-30/pi-tool-formatter-foundation

Conversation

@LasmarKhalifa

Copy link
Copy Markdown
Contributor

No description provided.

LasmarKhalifa commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

label = name.to_s.upcase
return label if arguments.empty?

details = arguments.map { |key, value| "#{key}: #{truncate(value.inspect)}" }.join(", ")

@LasmarKhalifa LasmarKhalifa Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorting key-value pairs by length might be a good idea here. Truncating the key as well.

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