Skip to content

Implement missing swiftfindrefs --version#7

Merged
michaelversus merged 1 commit intomichaelversus:masterfrom
Nikoloutsos:master
Jan 28, 2026
Merged

Implement missing swiftfindrefs --version#7
michaelversus merged 1 commit intomichaelversus:masterfrom
Nikoloutsos:master

Conversation

@Nikoloutsos
Copy link
Contributor

@Nikoloutsos Nikoloutsos commented Jan 28, 2026

By merging this PR we will be able to use swiftfindrefs --version.

> swiftfindrefs --version
1.0.1

current behavior is the following

> swiftfindrefs --version
Error: Provide either --projectName or --derivedDataPath.
Usage: swift-find-refs search [--projectName <projectName>] [--derivedDataPath <derivedDataPath>] [--verbose] --symbolName <symbolName> [--symbolType <symbolType>]
  See 'swift-find-refs search --help' for more information.

This is a simple but important addition that will help with debugging especially when users report issues, knowing the exact version.

@michaelversus michaelversus self-requested a review January 28, 2026 09:30
@michaelversus
Copy link
Owner

thanks @Nikoloutsos ❤️ !

Copy link
Owner

Choose a reason for hiding this comment

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

Can we read the version using this https://github.com/michaelversus/SwiftFindRefs/blob/master/VERSION?
We have a workflow for the releases and it will be very convenient having this as single source of truth.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, sure I can try it out. Better for the version to be in 1 place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following up, VERSION has been moved inside Sources to be able to be copied from bundle (5a96132)
Also all scripts pointing to old path have been renewed.

@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2026

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.59%. Comparing base (6be632e) to head (5a96132).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
Sources/SwiftFindRefs/SwiftFindRefs.swift 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
- Coverage   93.61%   93.59%   -0.03%     
==========================================
  Files          32       33       +1     
  Lines        2052     2060       +8     
==========================================
+ Hits         1921     1928       +7     
- Misses        131      132       +1     

☔ 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.

struct SwiftFindRefsTests {
@Test
func `Verify CLI version`() {
#expect(SwiftFindRefs.configuration.version == "1.0.1")
Copy link
Owner

Choose a reason for hiding this comment

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

same here

@michaelversus michaelversus merged commit 72b1e4b into michaelversus:master Jan 28, 2026
1 check passed
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.

3 participants