mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-17 23:48:17 +02:00
Add headline feature
This commit is contained in:
parent
4a9d054aa6
commit
3aefa27e03
@ -1,5 +1,6 @@
|
|||||||
|
HEAD Handwashing
|
||||||
Wet your hands with clean, running water (warm or cold), turn off the tap, and apply soap.
|
Wet your hands with clean, running water (warm or cold), turn off the tap, and apply soap.
|
||||||
Lather your hands by rubbing them together with the soap. Lather the backs of your hands, between your fingers, and under your nails.
|
Lather your hands by rubbing them together with the soap. Lather the backs of your hands, between your fingers, and under your nails.
|
||||||
Scrub your hands for at least 20 seconds. Need a timer? Hum the 'Happy Birthday' song from beginning to end twice.
|
Scrub your hands for at least 20 seconds.
|
||||||
Rinse your hands well under clean, running water.
|
Rinse your hands well under clean, running water.
|
||||||
Dry your hands using a clean towel or air dry them.
|
Dry your hands using a clean towel or air dry them.
|
||||||
|
@ -10,10 +10,15 @@ if ($Name -eq "") { $Name = read-host "Enter the name of the checklist" }
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$Lines = Get-Content -path "$PSScriptRoot/../Data/Checklists/$Name.txt"
|
$Lines = Get-Content -path "$PSScriptRoot/../Data/Checklists/$Name.txt"
|
||||||
|
clear-host
|
||||||
|
$Step = 1
|
||||||
foreach($Line in $Lines) {
|
foreach($Line in $Lines) {
|
||||||
"> $Line"
|
if ($Line -like "HEAD*") { & "$PSScriptRoot/write-big.ps1" "$Line"; continue }
|
||||||
|
|
||||||
|
"($Step) $Line"
|
||||||
& "$PSScriptRoot/speak-english.ps1" "$Line"
|
& "$PSScriptRoot/speak-english.ps1" "$Line"
|
||||||
$Dummy = read-host "Press <Return> to continue ..."
|
$Dummy = read-host "Press <Return> to continue ..."
|
||||||
|
$Step++
|
||||||
}
|
}
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user