librius 0.5.1

A personal library manager CLI written in Rust.
Documentation
# ============================================================
#  Librius - Submodule Check Script (PowerShell)
# ============================================================
# Verifica lo stato del submodule tools_private
# e controlla se รจ sincronizzato con l'ultimo commit remoto.
# ============================================================

$submodulePath = "tools_private"
$remoteUrl = "git@github.com:umpire274/rust_dev_scripts.git"
$branch = "main"

Write-Host "๐Ÿ” Checking submodule status for '$submodulePath'..." -ForegroundColor Cyan

if (-not (Test-Path "$submodulePath/.git"))
{
    Write-Host "โŒ Submodule not initialized. Run:" -ForegroundColor Red
    Write-Host "   git submodule update --init --recursive"
    exit 1
}

Set-Location $submodulePath

# Get local HEAD commit
$localCommit = git rev-parse HEAD
# Fetch latest remote
git fetch origin $branch --quiet
$remoteCommit = git rev-parse origin/$branch

Set-Location ..

if ($localCommit -eq $remoteCommit)
{
    Write-Host "โœ… Submodule '$submodulePath' is up to date with origin/$branch." -ForegroundColor Green
    exit 0
}
else
{
    Write-Host "โš ๏ธ  Submodule '$submodulePath' is out of sync!" -ForegroundColor Yellow
    Write-Host "   Local : $localCommit"
    Write-Host "   Remote: $remoteCommit"
    Write-Host ""
    Write-Host "๐Ÿ‘‰ To update, run:" -ForegroundColor Cyan
    Write-Host "   cd $submodulePath; git pull origin $branch; cd .."
    exit 2
}