diff --git a/Scripts/good-morning.ps1 b/Scripts/good-morning.ps1 new file mode 100755 index 00000000..4cfc533b --- /dev/null +++ b/Scripts/good-morning.ps1 @@ -0,0 +1,20 @@ +<# +.SYNOPSIS + Say an answer to 'good morning' +.DESCRIPTION + This script answers "good morning" by text-to-speech (TTS). +.EXAMPLE + PS> ./good-morning +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +try { + & "$PSScriptRoot/speak-english.ps1" "Well, good morning to you too" + exit 0 # success +} catch { + "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" + exit 1 +}