Last active
March 27, 2023 17:57
-
-
Save lucperkins/75f398ab603e51f787736d2232438164 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
# Say hello to <name> and add a ! to the end if <exclaim> is set. | |
def sayHello [ | |
name: string, # The person to say hello to | |
--exclaim(-e): bool, # Whether to add a ! at the end | |
] { | |
echo $"Hello, ($name)(if $exclaim { "!" })" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment