Browse Source

feat: API interactive option impoved

Vaclav Elias 2 years ago
parent
commit
c0100fc535
1 changed files with 4 additions and 2 deletions
  1. 4 2
      BuildDocs.ps1

+ 4 - 2
BuildDocs.ps1

@@ -96,11 +96,13 @@ function Ask-UseExistingAPI {
     Write-Host ""
     Write-Host ""
     Write-Host -ForegroundColor Cyan "Do you want to use already generated API metadata?"
     Write-Host -ForegroundColor Cyan "Do you want to use already generated API metadata?"
     Write-Host ""
     Write-Host ""
-    Write-Host -ForegroundColor Yellow "  [Y] Yes"
+    Write-Host -ForegroundColor Yellow "  [Y] Yes or ENTER"
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host ""
     Write-Host ""
 
 
-    return (Read-Host -Prompt "Your choice (Y/N)").ToLower() -eq "y"
+    $input = Read-Host -Prompt "Your choice [Y, N, or ENTER (default is Y)]"
+
+    return ($input -eq "Y" -or $input -eq "y" -or $input -eq "")
 }
 }
 
 
 function Copy-ExtraItems {
 function Copy-ExtraItems {