Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/brianary/Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
brianary committed Jul 16, 2024
2 parents deeeafc + 6d8e29a commit d32606a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Show-OpenApiInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Process
{
$api = Get-OpenApiInfo.ps1 $Path
Write-Host $api.Title -ForegroundColor Green -NoNewline
Write-Host " v$($api.Version) " -ForegroundColor DarkCyan -NoNewline
Write-Host " $($api.Version) " -ForegroundColor DarkCyan -NoNewline
if($api.Description) {Write-Host $api.Description -ForegroundColor DarkGreen}
Write-Host $api.Source -ForegroundColor Cyan -NoNewline
Write-Host " OpenAPI v$($api.OpenApi)" -ForegroundColor DarkCyan
Expand Down
17 changes: 3 additions & 14 deletions Test-USFederalHoliday.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,10 @@ Process
}
}
}
default {$false}
}
}
}
if($holiday)
{
if($ReturnName) {return $holiday}
else
{
Write-Verbose "$showdate is $holiday"
return $true
}
}
else
{
Write-Verbose "$showdate is not a US federal holiday"
return $false
}
if($holiday) {Write-Verbose "$showdate is $holiday"}
return [bool]$holiday
}

0 comments on commit d32606a

Please sign in to comment.