mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-16 06:58:18 +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
|
||||
Exports all scripts to Serenade
|
||||
Exports scripts to Serenade
|
||||
.DESCRIPTION
|
||||
This script exports all PowerShell scripts to Serenade to execute them by voice.
|
||||
.PARAMETER WakeWord
|
||||
|
@ -107,6 +107,7 @@ function ListTools {
|
||||
CheckFor perl "--version"
|
||||
CheckFor ping "-V"
|
||||
CheckFor ping6 "-V"
|
||||
CheckFor powershell "--version"
|
||||
CheckFor print ""
|
||||
CheckFor printf "--version"
|
||||
CheckFor python "--version"
|
||||
@ -169,7 +170,7 @@ function ListTools {
|
||||
}
|
||||
|
||||
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
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
Loading…
Reference in New Issue
Block a user