Skip to content

Instantly share code, notes, and snippets.

@lucperkins
Last active March 27, 2023 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucperkins/75f398ab603e51f787736d2232438164 to your computer and use it in GitHub Desktop.
Save lucperkins/75f398ab603e51f787736d2232438164 to your computer and use it in GitHub Desktop.
# 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