Update export-to-serenade.ps1 and list-cli-tools.ps1

This commit is contained in:
Markus Fleschutz 2021-11-30 10:34:53 +01:00
parent 304d2fc265
commit ba17f5b5e4
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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))"