#!/bin/bash

# WebUI Commands Header
# Shows available webui commands and help information

cliShowWebuiHelp()
{
    echo ""
    echo "Available WebUI Commands:"
    echo ""
    echo "  libreportal webui [action] [options]     - Manage LibrePortal WebUI"
    echo "    generate all                          - Generate all WebUI configs and icons"
    echo "    generate system                       - Update system information (OS, memory, disk)"
    echo "    generate config                       - Generate system configuration files"
    echo "    generate backup [source]              - Generate backup lists (default: all)"
    echo "       [local|remote1|remote2|all]        - Backup source"
    echo "    service                               - Setup WebUI Task Manager service"
    echo "    login show                            - Display current WebUI credentials and URLs"
    echo "    login reset                           - Regenerate credentials, restart WebUI, then show new ones"
    echo "    recover                               - Deprecated alias for 'login reset'"
    echo ""
    echo "Generated Files:"
    echo "  local.json - Local backup files"
    echo "  remote1.json - Remote1 backup files"
    echo "  remote2.json - Remote2 backup files"
    echo ""
    echo "Examples:"
    echo "  libreportal webui generate system"
    echo "  libreportal webui generate config"
    echo "  libreportal webui generate backup local"
    echo "  libreportal webui generate backup remote1"
    echo "  libreportal webui login show"
    echo "  libreportal webui login reset"
    echo ""
}
