Skip to content

Commit

Permalink
Add return for spectrecommand result
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 15, 2024
1 parent 92450cd commit ec7de9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This function invokes a script block in a background job and returns the output. It also provides an option to suppress the output even more if there is garbage being printed to stderr if using Level = Quieter.
.EXAMPLE
Invoke-SpectreCommandWithProgress {
$result = Invoke-SpectreCommandWithProgress {
param (
$Context
)
Expand All @@ -23,6 +23,7 @@
$task1.Increment(50)
return $value
}
Write-SpectreHost "Result: $result"
#>
function Invoke-SpectreScriptBlockQuietly {
[Reflection.AssemblyMetadata("title", "Invoke-SpectreScriptBlockQuietly")]
Expand Down

0 comments on commit ec7de9f

Please sign in to comment.