mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 13:36:39 +01:00
Add good-morning.ps1
This commit is contained in:
parent
3da0c69477
commit
d013e3e60b
20
Scripts/good-morning.ps1
Executable file
20
Scripts/good-morning.ps1
Executable file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user