mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 14:37:19 +02:00
Updated the Markdown manuals
This commit is contained in:
@ -25,9 +25,9 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./list-cli-tools.ps1
|
||||
|
||||
CLI-Tool Version Location
|
||||
-------- ------- --------
|
||||
at 10.0.19041.1 C:\WINDOWS\system32\at.exe (31K)
|
||||
Tool Name Version Installation Path
|
||||
--------- ------- -----------------
|
||||
7z 23.01 /usr/bin/7z (38 bytes)
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -72,13 +72,13 @@ function ListTool([string]$Name, [string]$VersionArg) {
|
||||
} else {
|
||||
$Size = 0
|
||||
}
|
||||
New-Object PSObject -Property @{ 'CLI-Tool'=$Name; Version=$Version; Location="$Path ($(Bytes2String $Size))" }
|
||||
New-Object PSObject -Property @{ 'Tool Name'=$Name; 'Version'=$Version; 'Installation Path'="$Path ($(Bytes2String $Size))" }
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
function ListTools {
|
||||
function ListTools {
|
||||
ListTool 7z "-version"
|
||||
ListTool ant "-v"
|
||||
ListTool apt "--version"
|
||||
@ -89,7 +89,7 @@ function ListTools {
|
||||
ListTool ar "--version"
|
||||
ListTool arch "--version"
|
||||
ListTool arecord "--version"
|
||||
ListTool arp ""
|
||||
ListTool arp "--version"
|
||||
ListTool at ""
|
||||
ListTool attrib ""
|
||||
ListTool auditpol ""
|
||||
@ -220,6 +220,7 @@ function ListTools {
|
||||
ListTool icacls "--version"
|
||||
ListTool iconv "--version"
|
||||
ListTool id "--version"
|
||||
ListTool ip "help"
|
||||
ListTool ipfs "--version"
|
||||
ListTool java "--version"
|
||||
ListTool jcli "version"
|
||||
@ -254,6 +255,7 @@ function ListTools {
|
||||
ListTool netsh ""
|
||||
ListTool netstat ""
|
||||
ListTool nice "--version"
|
||||
ListTool nmap "--version"
|
||||
ListTool nohup "--version"
|
||||
ListTool nroff "--version"
|
||||
ListTool nslookup ""
|
||||
@ -285,6 +287,7 @@ function ListTools {
|
||||
ListTool rsh ""
|
||||
ListTool rsync "--version"
|
||||
ListTool rundll32 "--version"
|
||||
ListTool sc.exe "/?"
|
||||
ListTool scp ""
|
||||
ListTool setx ""
|
||||
ListTool sftp ""
|
||||
@ -347,7 +350,7 @@ function ListTools {
|
||||
}
|
||||
|
||||
try {
|
||||
ListTools | Format-Table -property @{e='CLI-Tool';width=14},@{e='Version';width=17},@{e='Location';width=90}
|
||||
ListTools | Format-Table -property @{e='Tool Name';width=15},@{e='Version';width=15},@{e='Installation Path';width=90}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -355,4 +358,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-cli-tools.ps1 as of 03/27/2024 17:36:27)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-cli-tools.ps1 as of 05/19/2024 10:25:21)*
|
||||
|
Reference in New Issue
Block a user