mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update export-to-serenade.ps1 and list-cli-tools.ps1
This commit is contained in:
parent
304d2fc265
commit
ba17f5b5e4
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Exports all scripts to Serenade
|
Exports scripts to Serenade
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This script exports all PowerShell scripts to Serenade to execute them by voice.
|
This script exports all PowerShell scripts to Serenade to execute them by voice.
|
||||||
.PARAMETER WakeWord
|
.PARAMETER WakeWord
|
||||||
|
@ -107,6 +107,7 @@ function ListTools {
|
|||||||
CheckFor perl "--version"
|
CheckFor perl "--version"
|
||||||
CheckFor ping "-V"
|
CheckFor ping "-V"
|
||||||
CheckFor ping6 "-V"
|
CheckFor ping6 "-V"
|
||||||
|
CheckFor powershell "--version"
|
||||||
CheckFor print ""
|
CheckFor print ""
|
||||||
CheckFor printf "--version"
|
CheckFor printf "--version"
|
||||||
CheckFor python "--version"
|
CheckFor python "--version"
|
||||||
@ -169,7 +170,7 @@ function ListTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=45},@{e='FileSize';width=10}
|
ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=50},@{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