Skip to content

feat: update --version output to include Go version and os/arch#89

Merged
JaredHatfield merged 1 commit into
mainfrom
copilot/update-version-response-format
May 23, 2026
Merged

feat: update --version output to include Go version and os/arch#89
JaredHatfield merged 1 commit into
mainfrom
copilot/update-version-response-format

Conversation

Copilot AI commented May 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the --version flag output to match the standardized format:

mcp-acronym-lookup version vX.Y.Z (goX.Y, os/arch)

Changes

  • Added buildVersionOutput helper that normalizes the version string (adding a v prefix to bare semver strings) and appends the Go runtime version and OS/architecture via runtime.Version(), runtime.GOOS, and runtime.GOARCH
  • Added --version flag to main() that prints the formatted version string and exits
  • Added main_test.go with three tests covering: bare semver input, existing v-prefixed input, and non-semver (dev) input

Follows the same pattern applied to the hallucinateapi project in UnitVectorY-Labs/hallucinateapi#40.

@codecov

codecov Bot commented May 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 5.95%. Comparing base (194255d) to head (a8cf410).

Files with missing lines Patch % Lines
main.go 50.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main     #89      +/-   ##
========================================
+ Coverage   0.00%   5.95%   +5.95%     
========================================
  Files          1       1              
  Lines         74      84      +10     
========================================
+ Hits           0       5       +5     
- Misses        74      79       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JaredHatfield JaredHatfield merged commit 515ccff into main May 23, 2026
6 checks passed
@JaredHatfield JaredHatfield deleted the copilot/update-version-response-format branch May 23, 2026 23:22
@github-project-automation github-project-automation Bot moved this from Todo to Done in UnitVectorY Labs May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants