mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-06 16:44:58 +02:00
Update list-cli-tools.ps1
This commit is contained in:
parent
af77cc710b
commit
0b3859cd79
@ -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))"
|
||||||
|
Loading…
Reference in New Issue
Block a user