Created
May 19, 2024 13:17
-
-
Save adbertram/9cbc6faf6a32b8eb4505c0b438973642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Color { | |
Red | |
Green | |
Blue | |
} | |
function Set-Color { | |
param ( | |
[Color]$Color | |
) | |
Write-Host "Color set to $Color" | |
} | |
function Validate-Color { | |
param ( | |
[Color]$Color | |
) | |
Write-Host "Validated color: $Color" | |
} | |
Set-Color -Color Green | |
Validate-Color -Color Blue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment