#!/bin/bash

# Example: How to use non-interactive mode for ThrillWiki setup
#
# This script shows how to set up environment variables for non-interactive mode
# and run the automation without any user prompts.

echo "🤖 ThrillWiki Non-Interactive Setup Example"
echo "[AWS-SECRET-REMOVED]=="

# Set required environment variables for non-interactive mode
# These replace the interactive prompts

# Unraid password (REQUIRED)
export UNRAID_PASSWORD="your_unraid_password_here"

# GitHub token (REQUIRED if using GitHub API)
export GITHUB_TOKEN="your_github_token_here"

# Webhook secret (REQUIRED if webhooks enabled)
export WEBHOOK_SECRET="your_webhook_secret_here"

echo "✅ Environment variables set"
echo "📋 Configuration summary:"
echo "   - UNRAID_PASSWORD: [HIDDEN]"
echo "   - GITHUB_TOKEN: [HIDDEN]" 
echo "   - WEBHOOK_SECRET: [HIDDEN]"
echo

echo "🚀 Starting non-interactive setup..."
echo "This will use saved configuration and the environment variables above"
echo

# Run the setup script in non-interactive mode
./setup-complete-automation.sh -y

echo
echo "✨ Non-interactive setup completed!"
echo "📝 Note: This example script should be customized with your actual credentials"
