Merge branch 'master' of github.com:fleschutz/PowerShell

This commit is contained in:
Markus Fleschutz 2021-12-01 08:13:20 +01:00
commit 004900d484

View File

@ -13,8 +13,8 @@
Specifies the target file ("$HOME\.serenade\scripts\PowerShell.js" by default) Specifies the target file ("$HOME\.serenade\scripts\PowerShell.js" by default)
.EXAMPLE .EXAMPLE
PS> ./export-to-serenade.ps1 Computer PS> ./export-to-serenade.ps1 Computer
Found 499 PowerShell scripts... Found 534 PowerShell scripts...
Writing custom JavaScript file C:\Users\Markus\.serenade\scripts\PowerShell.js... Writing custom JavaScript file: C:\Users\Markus\.serenade\scripts\PowerShell.js...
Exported to Serenade with wake word "Computer" in 3 sec Exported to Serenade with wake word "Computer" in 3 sec
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz · License: CC0
@ -31,7 +31,7 @@ try {
$Scripts = Get-ChildItem "$FilePattern" $Scripts = Get-ChildItem "$FilePattern"
"⏳ Found $($Scripts.Count) PowerShell scripts..." "⏳ Found $($Scripts.Count) PowerShell scripts..."
"⏳ Writing custom JavaScript file $TargetFile..." "⏳ Writing custom JavaScript file: $TargetFile..."
"/* DO NOT EDIT! This file has been generated automatically by export-to-serenade.ps1 */" | Set-Content "$TargetFile" "/* DO NOT EDIT! This file has been generated automatically by export-to-serenade.ps1 */" | Set-Content "$TargetFile"
foreach ($Script in $Scripts) { foreach ($Script in $Scripts) {