Skip to content

Conversation

@viswajith-ks
Copy link
Contributor

Closes #20

What does this PR do?

This PR introduces a --version (and -v) flag to the application, allowing users to check the current version.

How was it implemented?

  • The main.go file was updated to handle the version flag manually using os.Args.
  • The Makefile was updated to automatically inject the latest Git tag into the binary at build time using ldflags.

Screenshot

As requested in the issue, here is a screenshot of the output:
image

@bakayu bakayu merged commit a100e43 into gitxtui:master Oct 2, 2025
2 checks passed
@bakayu bakayu added the hacktoberfest-accepted This PR is accepted under the hacktoberfest challenge label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted This PR is accepted under the hacktoberfest challenge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] - Add --version flag

2 participants