#!/usr/bin/fish
# Fedpunk CLI Wrapper - Delegates to the modular dispatcher

# Set environment variables for the dispatcher
if not set -q FEDPUNK_SYSTEM
    set -gx FEDPUNK_SYSTEM /usr/share/fedpunk
end

if not set -q FEDPUNK_USER
    set -gx FEDPUNK_USER $HOME/.local/share/fedpunk
end

# Set FEDPUNK_ROOT for backward compatibility with bin/fedpunk
set -gx FEDPUNK_ROOT $FEDPUNK_SYSTEM

# Delegate to the modular dispatcher
exec $FEDPUNK_SYSTEM/bin/fedpunk $argv
