Skip to content

Commit 791cff5

Browse files
author
James Brundage
committed
feat: Export-PipeScript Ordering ( Fixes #942 )
1 parent 190be35 commit 791cff5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Commands/PipeScript/Export-PipeScript.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ function Export-Pipescript {
335335
@(if (-not $InputPath) {
336336
Get-PipeScript -PipeScriptPath $pwd |
337337
Where-Object PipeScriptType -Match '(?>Template|BuildScript)' |
338-
Sort-Object PipeScriptType, Order, Source
338+
Sort-Object Order, PipeScriptType, Source
339339
} else {
340340
foreach ($inPath in $InputPath) {
341341
Get-PipeScript -PipeScriptPath $inPath |
342342
Where-Object PipeScriptType -Match '(?>Template|BuildScript)' |
343-
Sort-Object PipeScriptType, Order, Source
343+
Sort-Object Order, PipeScriptType, Source
344344
}
345345
})
346346

@@ -479,6 +479,9 @@ function Export-Pipescript {
479479
"$filesToBuildTotal in $($BuildTime)" | Out-Host
480480
"::endgroup::Building PipeScripts [$FilesToBuildCount / $filesToBuildTotal] : $($buildFile.Source)" | Out-Host
481481
if ($TotalInputFileLength) {
482+
$kbIn = $([Math]::Round($TotalInputFileLength / 1kb))
483+
$kbOut = $([Math]::Round($TotalOutputFileLength / 1kb))
484+
$pipeScriptFactor = $kbIn/$kbOut
482485
"$([Math]::Round($TotalInputFileLength / 1kb)) kb input"
483486
"$([Math]::Round($TotalOutputFileLength / 1kb)) kb output",
484487
"PipeScript Factor: X$([Math]::round([double]$TotalOutputFileLength/[double]$TotalInputFileLength,4))"

0 commit comments

Comments
 (0)