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

cli: add --version flag #26

Open
matthiaskrgr opened this issue Sep 5, 2019 · 0 comments
Open

cli: add --version flag #26

matthiaskrgr opened this issue Sep 5, 2019 · 0 comments
Labels
good first issue Good for newcomers ov-cli

Comments

@matthiaskrgr
Copy link
Member

The openvalidation-cli should have a --version flag that prints the current version (and git hash) of the cli.

The output could look like this:openvaldation 0.0.212 (a416c5e 2019-08-29)

It should contain the actual version, the git repo hash the jar was built from and preferably the date of the build or the date of the commit.

We can use git commands to get the hash and the commit date:

git rev-parse --short HEAD
to get the commit hash

git log -1 --date=short --pretty=format:%cd
to get the commit date

@matthiaskrgr matthiaskrgr added good first issue Good for newcomers ov-cli labels Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ov-cli
Projects
None yet
Development

No branches or pull requests

1 participant