Adjusted arguments skip ci
This commit is contained in:
@@ -9,18 +9,20 @@ function Format-Chronometer
|
|||||||
$resultes = Get-Chronometer -Path $script.fullname -ScriptBlock {Invoke-Pester C:\workspace\PSGraph}
|
$resultes = Get-Chronometer -Path $script.fullname -ScriptBlock {Invoke-Pester C:\workspace\PSGraph}
|
||||||
$results | Format-Chronometer -WarnAt 20 -ErrorAt 200
|
$results | Format-Chronometer -WarnAt 20 -ErrorAt 200
|
||||||
#>
|
#>
|
||||||
[cmdletbinding()]
|
[cmdletbinding(DefaultParameterSetName='Script')]
|
||||||
param(
|
param(
|
||||||
# This is a MonitoredScript object from Get-Chronometer
|
# This is a MonitoredScript object from Get-Chronometer
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ValueFromPipeline=$true
|
ValueFromPipeline=$true,
|
||||||
|
ParameterSetName='Script'
|
||||||
)]
|
)]
|
||||||
[MonitoredScript[]]
|
[MonitoredScript[]]
|
||||||
$InputObject,
|
$InputObject,
|
||||||
|
|
||||||
# This is a ScriptLine object from a MonitoredScript object
|
# This is a ScriptLine object from a MonitoredScript object
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ValueFromPipeline=$true
|
ValueFromPipeline=$true,
|
||||||
|
ParameterSetName='Line'
|
||||||
)]
|
)]
|
||||||
[ScriptLine[]]
|
[ScriptLine[]]
|
||||||
$Line,
|
$Line,
|
||||||
@@ -54,7 +56,7 @@ function Format-Chronometer
|
|||||||
|
|
||||||
foreach($command in $Line)
|
foreach($command in $Line)
|
||||||
{
|
{
|
||||||
Write-ScriptLine $line -WarningAt $WarningAt -ErrorAt $ErrorAt
|
Write-ScriptLine $command -WarningAt $WarningAt -ErrorAt $ErrorAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user