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