Improve write-quote.ps1

This commit is contained in:
Markus Fleschutz 2021-08-09 10:52:29 +02:00
parent af119fc7db
commit ec6730c09b
2 changed files with 18 additions and 1 deletions

View File

@ -17,3 +17,16 @@ Misc,Abraham Lincoln,"The best thing about the future is that it only comes one
Misc,Epictetus,"We have two ears and one mouth so that we can listen twice as much as we speak."
Misc,Cervantes,"Be slow of tongue and quick of eye."
Misc,Bruce Lee,"Mistakes are always forgivable, if one has the courage to admit them."
Misc,Nelson Mandela,"The greatest glory in living lies not in never falling, but in rising every time we fall."
Misc,Walt Disney,"The way to get started is to quit talking and begin doing."
Misc,John Lennon,"Life is what happens when you're busy making other plans"
Misc,Mother Teresa,"Spread love everywhere you go. Let no one ever come to you without leaving happier."
Misc,Benjamin Franklin,"Tell me and I forget. Teach me and I remember. Involve me and I learn."
Misc,Aristotle,"It is during our darkest moments that we must focus to see the light."
Misc,Anne Frank,"Whoever is happy will make others happy too."
Misc,Helen Keller,"Life is either a daring adventure or nothing at all."
Misc,Abraham Lincoln,"In the end, it's not the years in your life that count. It's the life in your years."
Misc,Albert Einstein,"Only a life lived for others is a life worthwhile."
Misc,Mae West,"You only live once, but if you do it right, once is enough."
Misc,Jonathan Swift,"May you live all the days of your life."
Misc,Hans Christian Andersen,"Life itself is the most wonderful fairy tale."

1 Genre Author Quote
17 Misc Epictetus We have two ears and one mouth so that we can listen twice as much as we speak.
18 Misc Cervantes Be slow of tongue and quick of eye.
19 Misc Bruce Lee Mistakes are always forgivable, if one has the courage to admit them.
20 Misc Nelson Mandela The greatest glory in living lies not in never falling, but in rising every time we fall.
21 Misc Walt Disney The way to get started is to quit talking and begin doing.
22 Misc John Lennon Life is what happens when you're busy making other plans
23 Misc Mother Teresa Spread love everywhere you go. Let no one ever come to you without leaving happier.
24 Misc Benjamin Franklin Tell me and I forget. Teach me and I remember. Involve me and I learn.
25 Misc Aristotle It is during our darkest moments that we must focus to see the light.
26 Misc Anne Frank Whoever is happy will make others happy too.
27 Misc Helen Keller Life is either a daring adventure or nothing at all.
28 Misc Abraham Lincoln In the end, it's not the years in your life that count. It's the life in your years.
29 Misc Albert Einstein Only a life lived for others is a life worthwhile.
30 Misc Mae West You only live once, but if you do it right, once is enough.
31 Misc Jonathan Swift May you live all the days of your life.
32 Misc Hans Christian Andersen Life itself is the most wonderful fairy tale.

View File

@ -21,7 +21,11 @@ try {
$Quote = $Table[$Index].Quote
$Author = $Table[$Index].Author
"📣 $Quote <$Author>"
write-host '“'$Quote' ”'
$Spaces = " "
$Spaces = $Spaces.Substring(0, $Quote.Length - $Author.Length)
write-host "$Spaces $($Author.toUpper())"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"