Skip to content

GitVersion Tool: Rename verbosity values to match GitVersion values #3282

@augustoproiete

Description

@augustoproiete

Follow-up from #3281

Background

The Verbosity argument of GitVersion changed in more recent releases and the existing values in Cake's enumeration no longer match the accepted values by GitVersion.

Proposal

Update/rename the values in the Cake enumeration to match the exact values values expected in newer versions of GitVersion. This would be a breaking change in the Cake's API and would be included in a future major version of Cake.

Cake Rename to GitVersion
None ➡️ Quiet
Error ➡️ Minimal
Warn ➡️ Normal
Info ➡️ Verbose
Debug ➡️ Diagnostic

Workaround

The current workaround is to use ArgumentCustomization to pass in custom values:

var result = GitVersion(new GitVersionSettings
{
    // ...
    ArgumentCustomization = args => args
        .Append("-verbosity")
        .Append("Quiet")
});

Related:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions