Skip to content

feat(segments): add Uno Platform support#7324

Open
ajpinedam wants to merge 4 commits intoJanDeDobbeleer:mainfrom
ajpinedam:anpi/feature/segment-uno-platform
Open

feat(segments): add Uno Platform support#7324
ajpinedam wants to merge 4 commits intoJanDeDobbeleer:mainfrom
ajpinedam:anpi/feature/segment-uno-platform

Conversation

@ajpinedam
Copy link
Copy Markdown

Prerequisites

  • I have read and understood the contributing guide.
  • The commit message follows the conventional commits guidelines.
  • Tests for the changes have been added (for bug fixes / features).
  • Docs have been added/updated (for bug fixes / features).

Description

This PR adds support for Uno Platform https://platform.uno. This new segment will display the Uno Platform version based on the information in global.json, which is very similar to what dotnet does.

Thank you!

Copilot AI review requested due to automatic review settings February 20, 2026 06:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new segment to display the Uno Platform SDK version by reading it from the global.json file's msbuild-sdks section. The implementation follows the established patterns for segments that parse JSON configuration files, properly handling commented JSON using jsonutil.StripComments.

Changes:

  • Added Uno Platform segment that reads SDK version from global.json
  • Registered the segment in all required locations with proper alphabetical ordering
  • Added comprehensive documentation and test coverage including edge cases

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/segments/uno.go Core implementation that parses global.json for Uno.Sdk version
src/segments/uno_test.go Test coverage with 5 test cases including commented JSON handling
src/config/segment_types.go Segment registration in gob.Register, const, and Segments map
website/docs/segments/cli/uno.mdx User-facing documentation for the segment
website/sidebars.js Added sidebar entry in alphabetical order
themes/schema.json Added JSON schema definition for the segment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 20, 2026 14:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

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.

2 participants