mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Improve write-quote.ps1
This commit is contained in:
parent
af119fc7db
commit
ec6730c09b
@ -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."
|
||||
|
|
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user