From f891c61e938ad0525ffd09141d00c80cf8193b1f Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 16 Sep 2023 22:45:36 +0100 Subject: [PATCH] feat(local-build): countdown after setup --- src/playbook/local-build.cmd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/playbook/local-build.cmd b/src/playbook/local-build.cmd index 298f89ddc9..47acd17626 100644 --- a/src/playbook/local-build.cmd +++ b/src/playbook/local-build.cmd @@ -54,12 +54,17 @@ if (!(Test-Path $configPath)) { choice /c:yn /n /m "Would you like to add a shortcut to %PATH% for the configuration file? [Y/N]" if ($LASTEXITCODE -eq 1) { New-ConfigPathShortcut} - Write-Host "" choice /c:yn /n /m "Would you like to open the config file now? [Y/N]" CreateConfig $defaultConfig if ($LASTEXITCODE -eq 1) { Start-Process -FilePath "notepad.exe" -ArgumentList $configPath -Wait } + Write-Host "" + + 3..1 | ForEach-Object { + Write-Host "`rCompleted, building playbook in $_..." -NoNewLine -ForegroundColor Yellow + Start-Sleep 1 + } } # check if path shortcut matches config path