@@ -55,7 +55,6 @@ function Invoke-Cmd {
5555 Write-Host ""
5656 Write-Host "Command failed: $_" -ForegroundColor Red
5757 Write-Host ""
58- Invoke-Pause-Menu
5958 return $false
6059 }
6160 finally {
@@ -66,7 +65,6 @@ function Invoke-Cmd {
6665 Write-Host ""
6766 Write-Host "Command exited with code $exitCode" -ForegroundColor Yellow
6867 Write-Host ""
69- Invoke-Pause-Menu
7068 return $false
7169 }
7270
@@ -101,11 +99,6 @@ except Exception as exc: # pylint: disable=broad-except
10199 }
102100}
103101
104- function Invoke-Pause-Menu {
105- Write-Host ""
106- Write-Host "=========================="
107- Read-Host "Press ENTER to return to the menu" | Out-Null
108- }
109102
110103while ($true) {
111104 Write-Host ""
@@ -130,26 +123,25 @@ while ($true) {
130123
131124 switch ($choice) {
132125 '1' {
133- if ( Invoke-Cmd (Get-Python) "$RepoRoot/setup/local_setup.py" "--complete-setup") { Invoke-Pause-Menu }
126+ Invoke-Cmd (Get-Python) "$RepoRoot/setup/local_setup.py" "--complete-setup"
134127 }
135128 '2' {
136- if ( Invoke-Cmd (Get-Python) "$RepoRoot/setup/verify_local_setup.py") { Invoke-Pause-Menu }
129+ Invoke-Cmd (Get-Python) "$RepoRoot/setup/verify_local_setup.py"
137130 }
138131 '3' {
139132 Show-AccountInfo
140- Invoke-Pause-Menu
141133 }
142134 '4' {
143- if ( Invoke-Cmd (Get-Python) "$RepoRoot/shared/python/show_soft_deleted_resources.py") { Invoke-Pause-Menu }
135+ Invoke-Cmd (Get-Python) "$RepoRoot/shared/python/show_soft_deleted_resources.py"
144136 }
145137 '5' {
146- if ( Invoke-Cmd "$RepoRoot/tests/python/run_pylint.ps1") { Invoke-Pause-Menu }
138+ Invoke-Cmd "$RepoRoot/tests/python/run_pylint.ps1"
147139 }
148140 '6' {
149- if ( Invoke-Cmd "$RepoRoot/tests/python/run_tests.ps1") { Invoke-Pause-Menu }
141+ Invoke-Cmd "$RepoRoot/tests/python/run_tests.ps1"
150142 }
151143 '7' {
152- if ( Invoke-Cmd "$RepoRoot/tests/python/check_python.ps1") { Invoke-Pause-Menu }
144+ Invoke-Cmd "$RepoRoot/tests/python/check_python.ps1"
153145 }
154146 '0' {
155147 Write-Host ""
0 commit comments