private/Get-Color.ps1
function Get-Color{ param($diff) switch ($diff) { ([RELEASE]::None) { $_color = $COLOR_NONE } ([RELEASE]::Build) { $_color = $COLOR_BUILD } ([RELEASE]::Patch) { $_color = $COLOR_PATCH } ([RELEASE]::Minor) { $_color = $COLOR_MINOR } ([RELEASE]::Major) { $_color = $COLOR_MAJOR } } return $_color } |