Skip to content

[FEAT] - Add --version flag #20

@bakayu

Description

@bakayu

Add --version Flag to Display Binary Version

Current Behavior:

There is currently no straightforward way for users to check the installed version of the gitx binary.

Desired Behavior:

Add a --version flag that, when used, prints the current version of the application and then exits. This is a standard feature in command-line tools and improves usability. The version should be taken from the latest tag pushed in the master branch.
Example usage:

gitx --version
gitx version: 1.2.2

PR Acceptance Criteria:

  • Running gitx --version in the terminal should print the application's version number.
  • The version number should be dynamically injected into the binary at build time to ensure accuracy.
  • Attach a screenshot of the terminal output after running the gitx --version command.

Metadata

Metadata

Assignees

Labels

EASYThis bug/feature request is easy to work around.enhancementNew feature or requestgood first issueGood for newcomershacktoberfestIssue is up for grabs for hacktoberfestlanguage/goRequires the knowledge of "Go"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions