Update the manuals in Docs/

This commit is contained in:
Markus Fleschutz
2022-11-17 20:02:26 +01:00
parent 4dac9cf2b1
commit 7f79a2afbb
515 changed files with 20228 additions and 517 deletions

View File

@ -1,4 +1,6 @@
## repeat-last-reply.ps1 - repeat-last-reply.ps1
## The repeat-last-reply.ps1 PowerShell Script
repeat-last-reply.ps1
## Parameters
@ -10,4 +12,35 @@
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Source Code
<#
.SYNOPSIS
Repeats the last reply
.DESCRIPTION
This PowerShell script repeats the last reply by text-to-speech (TTS).
.EXAMPLE
PS> ./repeat-last-reply
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
function GetTempDir {
if ("$env:TEMP" -ne "") { return "$env:TEMP" }
if ("$env:TMP" -ne "") { return "$env:TMP" }
if ($IsLinux) { return "/tmp" }
return "C:\Temp"
}
if (test-path "$(GetTempDir)/last_reply_given.txt" -pathType leaf) {
$Reply = "It was: "
$Reply += Get-Content "$(GetTempDir)/last_reply_given.txt"
} else {
$Reply = "Sorry, I can't remember."
}
& "$PSScriptRoot/give-reply.ps1" "$Reply"
exit 0 # success
*Generated by convert-ps2md.ps1 using the comment-based help of repeat-last-reply.ps1*