Skip to content

Commit

Permalink
feat(local-build): countdown after setup
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 16, 2023
1 parent 3507009 commit f891c61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/playbook/local-build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f891c61

Please sign in to comment.