mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02:00
Update export-to-serenade.ps1
This commit is contained in:
parent
6e1a1897e8
commit
8fc70192a6
@ -11,7 +11,7 @@
|
|||||||
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
|
||||||
Exporting 264 scripts to C:\Users\Markus/.serenade/scripts/PowerShell.js...
|
⏳ Exporting 264 scripts to C:\Users\Markus/.serenade/scripts/PowerShell.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
|
||||||
@ -27,7 +27,7 @@ try {
|
|||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
$Scripts = Get-ChildItem "$FilePattern"
|
$Scripts = Get-ChildItem "$FilePattern"
|
||||||
"Exporting $($Scripts.Count) scripts to $TargetFile..."
|
"⏳ Exporting $($Scripts.Count) scripts to $TargetFile..."
|
||||||
|
|
||||||
"/* NOTE: This file has been generated automatically by export-to-serenade.ps1 */" | Set-Content "$TargetFile"
|
"/* NOTE: This file has been generated automatically by export-to-serenade.ps1 */" | Set-Content "$TargetFile"
|
||||||
foreach ($Script in $Scripts) {
|
foreach ($Script in $Scripts) {
|
||||||
|
Loading…
Reference in New Issue
Block a user