skarpdev / dotnet-version-cli

dotnet version cli (similar to npm version cli)
MIT License
38 stars 12 forks source link

Use switch for OutputFormat in DumpVersion #95

Closed pingvinen closed 2 years ago

pingvinen commented 2 years ago

Fixes #94

This PR changes the implementation of VersionCli.DumpVersion to use a switch on the output format instead of multiple ifs.

sonarcloud[bot] commented 2 years ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication