Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Feb 25, 2024
1 parent aea67c1 commit 5184117
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PwshSpectreConsole/public/progress/Add-SpectreJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function Add-SpectreJob {
The PowerShell job to add to the context.
.EXAMPLE
# This is an example of how to use the Add-SpectreJob function to add two jobs to a jobs list that can be passed to Wait-SpectreJobs.
Invoke-SpectreCommandWithProgress -Title "Waiting" -ScriptBlock {
# This is an example of how to use the Add-SpectreJob function to add two jobs to a jobs list that can be passed to Wait-SpectreJobs when you're inside Invoke-SpectreCommandWithProgress.
Invoke-SpectreCommandWithProgress -ScriptBlock {
param (
$Context
)
Expand Down
2 changes: 1 addition & 1 deletion PwshSpectreConsole/public/progress/Wait-SpectreJobs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Wait-SpectreJobs {
.EXAMPLE
# Waits for two jobs to complete
Invoke-SpectreCommandWithProgress -Title "Waiting" -ScriptBlock {
Invoke-SpectreCommandWithProgress -ScriptBlock {
param (
$Context
)
Expand Down
2 changes: 2 additions & 0 deletions PwshSpectreConsole/public/writing/Write-SpectreCalender.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ function Write-SpectreCalendar {
Hides the header of the calendar. (Date)
.EXAMPLE
# This example shows how to use the Write-SpectreCalendar function with an events table defined as a hashtable in the command.
Write-SpectreCalendar -Date 2024-07-01 -Events @{'2024-07-10' = 'Beach time!'; '2024-07-20' = 'Barbecue' }
.EXAMPLE
# This example shows how to use the Write-SpectreCalendar function with an events table as an object argument.
$events = @{
'2024-01-10' = 'Hello World!'
'2024-01-20' = 'Hello Universe!'
Expand Down

0 comments on commit 5184117

Please sign in to comment.