schon/scripts/Windows/starter.ps1
2026-01-25 23:16:38 +03:00

36 lines
No EOL
899 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 ".\schon" -PathType Container))
{
Write-Error-Custom "❌ Please run this script from the project's root (where the 'schon' directory lives)."
exit 1
}
$artPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) '..\ASCII_ART_SCHON'
if (-not (Test-Path $artPath))
{
Write-Error-Custom "❌ Could not find ASCII art at $artPath"
exit 1
}
clear
if (Test-Interactive)
{
$royal_grey = "`e[38;2;127;144;158m"
$reset = "`e[0m"
Get-Content -Raw -Path $artPath | ForEach-Object { Write-Host "$royal_grey$_$reset" }
}
else
{
# In non-interactive mode, just show simple banner
Write-Output "Schon by WISELESS TEAM"
}
exit 0