Skip to content

Commit a82fd71

Browse files
feat: requirements check improvment (#280)
# Pull Request ## Description Tidy the output for requirements check and use the IsPresent to handle all cases. NOTE: The existing implementation is working, this is an improvement. ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
1 parent bf807a8 commit a82fd71

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ templates/basic/terraform.tfvars
5353
templates/.test_azuredevops
5454
templates/.test_github
5555
.vscode/settings.json
56-
/ALZ
56+
/ALZ
57+
.tools

src/ALZ/Public/Deploy-Accelerator.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ function Deploy-Accelerator {
182182

183183
$ProgressPreference = "SilentlyContinue"
184184

185-
if(-not $skip_requirements_check) {
185+
if($skip_requirements_check.IsPresent) {
186+
Write-InformationColored "WARNING: Skipping the software requirements check..." -ForegroundColor Yellow -InformationAction Continue
187+
} else {
186188
Write-InformationColored "Checking the software requirements for the Accelerator..." -ForegroundColor Green -InformationAction Continue
187189
Test-Tooling
188-
} else {
189-
Write-InformationColored "Skipping the software requirements check..." -ForegroundColor Yellow -InformationAction Continue
190190
}
191191

192-
Write-InformationColored "Getting ready to deploy the accelerator with you..." -ForegroundColor Green -InformationAction Continue
192+
Write-InformationColored "Getting ready to deploy the accelerator with you..." -ForegroundColor Green -NewLineBefore -InformationAction Continue
193193

194194
if ($PSCmdlet.ShouldProcess("Accelerator setup", "modify")) {
195195

0 commit comments

Comments
 (0)