Created
May 19, 2024 13:19
-
-
Save adbertram/3a146d7d25f44816d9cc20319e36b9e0 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