Skip to content

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

Description

@arturcic

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions