#!/bin/bash
# NIP Shell Demo Script
# Demonstrates key shell features

echo "🚀 NIP Shell Demo"
echo "=================="

# Build if needed
if [ ! -f "src/nip.out" ]; then
    echo "Building NIP..."
    nim c -d:release src/nip.nim
fi

echo ""
echo "📚 1. Help System"
echo "nip> help"
echo "help" | ./src/nip.out shell

echo ""
echo "🔍 2. Package Search"
echo "nip> search firefox"
echo "search firefox" | ./src/nip.out shell

echo ""
echo "📋 3. Package Information"
echo "nip> show firefox"
echo "show firefox" | ./src/nip.out shell

echo ""
echo "📦 4. List Packages"
echo "nip> list"
echo "list" | ./src/nip.out shell

echo ""
echo "🛤️  5. Track Management"
echo "nip> track testing"
echo "track testing" | ./src/nip.out shell

echo ""
echo "📊 6. System Status"
echo "nip> status"
echo "status" | ./src/nip.out shell

echo ""
echo "✅ Demo complete! Try interactive mode:"
echo "   ./src/nip.out shell"