mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
Add PassThru support to Start-PSPester (#3205)
This commit is contained in:
parent
b043b444db
commit
f29b99ec6a
@ -683,7 +683,8 @@ function Start-PSPester {
|
|||||||
[string]$powershell = (Join-Path $binDir 'powershell'),
|
[string]$powershell = (Join-Path $binDir 'powershell'),
|
||||||
[string]$Pester = ([IO.Path]::Combine($binDir, "Modules", "Pester")),
|
[string]$Pester = ([IO.Path]::Combine($binDir, "Modules", "Pester")),
|
||||||
[switch]$Unelevate,
|
[switch]$Unelevate,
|
||||||
[switch]$Quiet
|
[switch]$Quiet,
|
||||||
|
[switch]$PassThru
|
||||||
)
|
)
|
||||||
|
|
||||||
# we need to do few checks and if user didn't provide $ExcludeTag explicitly, we should alternate the default
|
# we need to do few checks and if user didn't provide $ExcludeTag explicitly, we should alternate the default
|
||||||
@ -747,6 +748,9 @@ function Start-PSPester {
|
|||||||
if ( $Quiet ) {
|
if ( $Quiet ) {
|
||||||
$Command += "-Quiet "
|
$Command += "-Quiet "
|
||||||
}
|
}
|
||||||
|
if ( $PassThru ) {
|
||||||
|
$Command += "-PassThru "
|
||||||
|
}
|
||||||
|
|
||||||
$Command += "'" + $Path + "'"
|
$Command += "'" + $Path + "'"
|
||||||
if ($Unelevate)
|
if ($Unelevate)
|
||||||
|
Loading…
Reference in New Issue
Block a user