Skip to content

Commit

Permalink
Fix code review points.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayed Mehran Siadati committed Dec 30, 2023
1 parent ec1cf77 commit beb81c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Source/BSN.IpTables.Api/ConfigureSwaggerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ConfigureSwaggerOptions(
_provider = provider;
}

/// <summary>+
/// <summary>
/// Configure each API discovered for Swagger Documentation
/// </summary>
/// <param name="options"></param>
Expand Down
34 changes: 17 additions & 17 deletions Source/BSN.IpTables.Cli/Generate-PowerShellClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
$ErrorActionPreference = 'Stop'

if ($PSEdition -ne 'Core') {
Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
}

# try {
# Write-Host "Nvm is installed, version" $(nvm --version)
# }
# catch {
# Write-Error "Nvm is not installed, install it manually to continue."
# }

# # 18.18.0 is the latest LTS node version
# New-Variable -Name desiredNodeVersion -Value 'v18.18.0' -Option ReadOnly
# if ($(nvm current) -ne $desiredNodeVersion) {
# nvm install $desiredNodeVersion
# nvm use $desiredNodeVersion
# }
# else {
# Write-Host "Node is installed, version" $desiredNodeVersion
# }
try {
Write-Host "Nvm is installed, version" $(nvm --version)
}
catch {
Write-Error "Nvm is not installed, install it manually to continue."
}

# 18.18.0 is the latest LTS node version
New-Variable -Name desiredNodeVersion -Value 'v18.18.0' -Option ReadOnly
if ($(nvm current) -ne $desiredNodeVersion) {
nvm install $desiredNodeVersion
nvm use $desiredNodeVersion
}
else {
Write-Host "Node is installed, version" $desiredNodeVersion
}

try {
(autorest --version).Split([Environment]::NewLine) | Select -First 1
Expand Down

0 comments on commit beb81c2

Please sign in to comment.