mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-24 15:49:02 +01:00
21 lines
467 B
PowerShell
Executable File
21 lines
467 B
PowerShell
Executable File
<#
|
|
.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
|
|
}
|