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

[Feature] Add an additional command line argument - "-format" to allow to output an expression instead of a singular version variable #3400

Closed
arturcic opened this issue Feb 26, 2023 · 1 comment · Fixed by #3401
Assignees
Labels
Milestone

Comments

@arturcic
Copy link
Member

Currently there is a -showvariable switch that allows us from command line to return a specific version variable.
By adding a new -format switch, we are able to customize the way the output looks like, allowing to combine several version variables and environment variables.

For example:

`dotnet gitversion -format "{Major}.{Minor}" will output only these 2 variables combined.

@arturcic arturcic added this to the 6.x milestone Feb 26, 2023
@arturcic arturcic self-assigned this Feb 26, 2023
arturcic added a commit to arturcic/GitVersion that referenced this issue Feb 26, 2023
arturcic added a commit that referenced this issue Feb 27, 2023
@arturcic arturcic modified the milestones: 6.x, 6.0.0-beta.1 Mar 2, 2023
@arturcic
Copy link
Member Author

arturcic commented Mar 2, 2023

🎉 This issue has been resolved in version 6.0.0-beta.1 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant