Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add version info #5

Merged
merged 1 commit into from
Nov 24, 2023
Merged

feat: add version info #5

merged 1 commit into from
Nov 24, 2023

Conversation

dreamjz
Copy link
Member

@dreamjz dreamjz commented Nov 24, 2023

fixes #4

Test Cases

$ export VER=v1.0

$ go build -v -ldflags "-s -w -X github.com/acgtools/sub-renamer/cmd.version=$VER" -o sub-renamer
github.com/acgtools/sub-renamer

$ ./sub-renamer -v
sub-renamer version v1.0

@dreamjz dreamjz merged commit 4851e02 into main Nov 24, 2023
1 check passed
@dreamjz dreamjz deleted the feat-add-version branch November 24, 2023 00:52
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.

Feat: Add version info
1 participant