Update list-cli-tools.ps1

This commit is contained in:
Markus Fleschutz 2021-12-01 08:13:00 +01:00
parent af77cc710b
commit 0b3859cd79

View File

@ -153,6 +153,7 @@ function ListTools {
CheckFor where "--version" CheckFor where "--version"
CheckFor whatis "--version" CheckFor whatis "--version"
CheckFor which "" CheckFor which ""
CheckFor winget "--version"
CheckFor whoami "--version" CheckFor whoami "--version"
CheckFor wput "--version" CheckFor wput "--version"
CheckFor write "" CheckFor write ""
@ -170,7 +171,7 @@ function ListTools {
} }
try { try {
ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=50},@{e='FileSize';width=10} ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=55},@{e='FileSize';width=10}
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"