mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +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]$Pester = ([IO.Path]::Combine($binDir, "Modules", "Pester")),
|
||||
[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
|
||||
@ -747,6 +748,9 @@ function Start-PSPester {
|
||||
if ( $Quiet ) {
|
||||
$Command += "-Quiet "
|
||||
}
|
||||
if ( $PassThru ) {
|
||||
$Command += "-PassThru "
|
||||
}
|
||||
|
||||
$Command += "'" + $Path + "'"
|
||||
if ($Unelevate)
|
||||
|
Loading…
Reference in New Issue
Block a user