mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-25 08:09:17 +01:00
Update export-to-serenade.ps1
This commit is contained in:
parent
52285d3c3b
commit
e659cc2606
@ -8,10 +8,10 @@
|
|||||||
.PARAMETER FilePattern
|
.PARAMETER FilePattern
|
||||||
Specifies the file pattern for the scripts ("$PSScriptRoot/*.ps1" by default)
|
Specifies the file pattern for the scripts ("$PSScriptRoot/*.ps1" by default)
|
||||||
.PARAMETER TargetFile
|
.PARAMETER TargetFile
|
||||||
Specifies the target file ("$HOME/.serenade/scripts/PowerShell.js" by default)
|
Specifies the target file ("$HOME/.serenade/scripts/custom.js" by default)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./export-to-serenade.ps1 Computer
|
PS> ./export-to-serenade.ps1 Computer
|
||||||
⏳ Exporting 264 scripts to C:\Users\Markus/.serenade/scripts/PowerShell.js...
|
⏳ Exporting 264 scripts to C:\Users\Markus/.serenade/scripts/custom.js...
|
||||||
✔️ exported 264 PowerShell scripts to Serenade in 22 sec
|
✔️ exported 264 PowerShell scripts to Serenade in 22 sec
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#requires -version 2
|
#requires -version 2
|
||||||
|
|
||||||
param([string]$WakeWord = "", [string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$TargetFile = "$HOME/.serenade/scripts/PowerShell.js")
|
param([string]$WakeWord = "", [string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$TargetFile = "$HOME/.serenade/scripts/custom.js")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
Loading…
Reference in New Issue
Block a user