mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 14:18:38 +01:00
Improve list-cli-tools.ps1
This commit is contained in:
parent
ae240d8dcd
commit
d9251e999a
@ -59,9 +59,9 @@ function ListTools {
|
||||
}
|
||||
|
||||
try {
|
||||
"List of Command-line Tools Available"
|
||||
"===================================="
|
||||
ListTools | format-table -property Name,Version,Location,FileSize
|
||||
"List of Available CLI Tools"
|
||||
"==========================="
|
||||
ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=10},@{e='Location';width=30},@{e='FileSize';width=10}
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user