Last active
April 15, 2019 06:51
-
-
Save chriskuech/f009bd0466b9638f6d780e40d92f6119 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
# Ensure a path exists | |
[ValidateScript({Test-Path $_})] | |
$path | |
# Ensure a non-empty value | |
[ValidateNotNullOrEmpty()] | |
$value | |
# Ensure a string meets a certain convention | |
[ValidatePattern("^[a-z]+-[a-z]+-[a-z]+-[0-9]+$")] | |
$identifier | |
# Ensure a string is a predefined symbol | |
[ValidateSet("DEV", "INT", "TEST", "STAGE", "CANARY", "PROD")] | |
$flightingRing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment