Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-01-17 08:31:53 +01:00
parent efe4a2c6b4
commit 33ef92d879
635 changed files with 2375 additions and 1666 deletions

View File

@ -25,9 +25,9 @@ Script Content
.EXAMPLE
PS> ./list-cli-tools.ps1
Tool Name Version Installation Path
--------- ------- -----------------
7z 23.01 /usr/bin/7z (38 bytes)
TOOL VERSION INSTALLATION PATH
---- ------- -----------------
arp 10.0.22621.4111 C:\Windows\system32\ARP.EXE (45K)
...
.LINK
https://github.com/fleschutz/PowerShell
@ -72,13 +72,13 @@ function ListTool([string]$Name, [string]$VersionArg) {
} else {
$Size = 0
}
New-Object PSObject -Property @{ 'Tool Name'=$Name; 'Version'=$Version; 'Installation Path'="$Path ($(Bytes2String $Size))" }
New-Object PSObject -Property @{ 'TOOL'=$Name; 'VERSION'=$Version; 'INSTALLATION PATH'="$Path ($(Bytes2String $Size))" }
} catch {
return
}
}
function ListTools {
function List-CLI-Tools {
ListTool 7z "-version"
ListTool ant "-v"
ListTool apt "--version"
@ -350,7 +350,7 @@ function ListTools {
}
try {
ListTools | Format-Table -property @{e='Tool Name';width=15},@{e='Version';width=15},@{e='Installation Path';width=90}
List-CLI-Tools | Format-Table -property @{e='TOOL';width=15},@{e='VERSION';width=16},@{e='INSTALLATION PATH';width=90}
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -358,4 +358,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)*