Skip to content

Commit a477298

Browse files
StartAutomatingStartAutomating
authored andcommitted
fix: Stop-Htmx ( Fixes #8 )
Supporting -PassThru and adding to tests
1 parent 1152cf0 commit a477298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Commands/Stop-Htmx.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Stop-Htmx {
6262
if ($job.HttpListener) {
6363
$job.HttpListener.Stop()
6464
}
65-
$job | Stop-Job
65+
$job | Stop-Job -PassThru:$passThru
6666
} else {
6767
foreach ($existingJob in Get-Job @PSBoundParameters) {
6868
if ($existingJob.HttpListener) {
@@ -73,7 +73,7 @@ function Stop-Htmx {
7373
}
7474

7575
}
76-
$existingJob | Stop-Job
76+
$existingJob | Stop-Job -PassThru:$passThru
7777
}
7878
}
7979

0 commit comments

Comments
 (0)