{% for category, script_names in scripts_by_category.items() %}
{{ category }}
{% for script_name in script_names %}
{% if script_name in script_map %}
{% set script_config = script_map[script_name] %}
{% if script_config is string %}
{# Simple command with no county selection #}
{% elif script_config is mapping %}
{# County-specific commands #}
{% if 'lake' in script_config %}
{% set lake_config = script_config['lake'] %}
{% if lake_config is mapping and lake_config.get('type') == 'upload' %}
{% else %}
{% if script_name == 'diff-addresses' %}
{% endif %}
{% endif %}
{% endif %}
{% if 'sumter' in script_config %}
{% set sumter_config = script_config['sumter'] %}
{% if sumter_config is mapping and sumter_config.get('type') == 'upload' %}
{% else %}
{% if script_name == 'diff-addresses' %}
{% endif %}