Fixes: 1) Remove obsolete `reboot` scripts for Unix and Windows to prevent redundancy; 2) Update Windows `test.ps1` to handle omitted coverage patterns and improve error feedback. Extra: 1) Refactor Windows scripts (`make-messages.ps1`, `compile-messages.ps1`, `backup.ps1`) to use shared utilities for better consistency and output formatting; 2) Add spinner-based progress indicators to enhance user experience in interactive environments.
35 lines
No EOL
1,019 B
PowerShell
35 lines
No EOL
1,019 B
PowerShell
Set-StrictMode -Version Latest
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
# Load shared utilities
|
|
$utilsPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) '..\lib\utils.ps1'
|
|
. $utilsPath
|
|
|
|
if (-not (Test-Path -Path ".\evibes" -PathType Container))
|
|
{
|
|
Write-Error-Custom "❌ Please run this script from the project's root (where the 'evibes' directory lives)."
|
|
exit 1
|
|
}
|
|
|
|
$artPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) '..\ASCII_ART_EVIBES'
|
|
|
|
if (-not (Test-Path $artPath))
|
|
{
|
|
Write-Error-Custom "❌ Could not find ASCII art at $artPath"
|
|
exit 1
|
|
}
|
|
|
|
if (Test-Interactive)
|
|
{
|
|
$purple = "`e[38;2;121;101;209m"
|
|
$reset = "`e[0m"
|
|
Get-Content -Raw -Path $artPath | ForEach-Object { Write-Host "$purple$_$reset" }
|
|
Write-Host "`n by WISELESS TEAM`n" -ForegroundColor Gray
|
|
}
|
|
else
|
|
{
|
|
# In non-interactive mode, just show simple banner
|
|
Write-Output "eVibes by WISELESS TEAM"
|
|
}
|
|
|
|
exit 0 |