#!/bin/bash

# Asset Version Management Aliases
# Add these to your ~/.bashrc or ~/.zshrc for easy access

# Navigate to project directory (update path as needed)
alias cd-project="cd /var/www/html"

# Version increment shortcuts
alias version-patch="cd /var/www/html && php increment-version.php patch"
alias version-minor="cd /var/www/html && php increment-version.php minor" 
alias version-major="cd /var/www/html && php increment-version.php major"

# View current version
alias version-current="cd /var/www/html && grep ASSET_VERSION .env"

# Artisan shortcuts for cache clearing
alias clear-cache="cd /var/www/html && php artisan config:clear && php artisan view:clear && php artisan route:clear"

echo "Asset versioning aliases loaded! Available commands:"
echo "  version-patch  - Increment patch version (2.0.1 -> 2.0.2)"
echo "  version-minor  - Increment minor version (2.0.1 -> 2.1.0)"
echo "  version-major  - Increment major version (2.0.1 -> 3.0.0)"
echo "  version-current- Show current version"
echo "  clear-cache    - Clear all Laravel caches"
