Skip to content

Commit

Permalink
- add entry to yaml templates for valid keys
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jun 20, 2024
1 parent 333e331 commit f09763b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ requires:
#
{%- endif -%}

{%- if option.valid_keys is defined and option.display_valid_keys %}
# Valid keys are {{ option.valid_keys }}
{%- endif -%}

{%- if option.range_start is defined and option.range_start is number %}
{{- range_option(option) -}}

{%- elif option.options -%}
{%- for suboption_option_id, sub_option_name in option.name_lookup.items() %}
{{ yaml_dump(sub_option_name) }}: {% if suboption_option_id == option.default %}50{% else %}0{% endif %}
{%- endfor -%}
{%- endfor -%}

{%- if option.name_lookup[option.default] not in option.options %}
{{ yaml_dump(option.default) }}: 50
Expand Down

0 comments on commit f09763b

Please sign in to comment.