Repository navigation
Conversation
Define the status markers (`[✓]` `[!]` `[x]`) and the pieces of the tree connectors in `pkg/symbols`, and use them in the validate renderer and in the trace printer, which had them as string literals. The output unchanged. This gives the commands one place for these symbols, so that new subcommands print the same ones. Signed-off-by: Theo Chatzimichos <tampakrap@gmail.com>
tampakrap
requested review from
a team,
adamwg and
haarchri
and
a balanced review from Copilot
and removed request for
a team
November 26, 2026 13:53
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the refactor centralizing shared CLI output symbols.
No open issues 🎉
What changed in this PR
This refactor centralizes CLI output symbols in pkg/symbols so validation, tracing, and future commands can reuse consistent markers and tree connectors without changing existing output.
Changes:
- Add shared constants for status markers and tree connectors.
- Update the validation renderer and trace printer to use those constants.
| File | Description |
|---|---|
pkg/validate/output/render.go |
Replace local status markers with shared constants. |
pkg/symbols/tree.go |
Define and document reusable tree connectors. |
pkg/symbols/markers.go |
Define and document reusable status markers. |
cmd/crossplane/trace/internal/printer/default.go |
Replace tree connector literals with shared constants. |
Review effort: Balanced
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
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.
Description of your changes
Define the status markers (
[✓][!][x]) and the pieces of the tree connectors inpkg/symbols, and use them in the validate renderer and in the trace printer, which had them as string literals. The output unchanged.This gives the commands one place for these symbols, so that new subcommands print the same ones.
Related:
crossplane test#115I have:
./nix.sh flake checkto ensure this PR is ready for review.Linked a PR or a docs tracking issue to document this change.Addedbackport release-x.ylabels to auto-backport this PR.Need help with this checklist? See the cheat sheet.