2021-11-18 12:40:02 +00:00
<#macro expectedValues option>
2024-08-13 08:35:40 +00:00
<#assign optionObj = ctx.options.getOption(option) />
<#list optionObj.expectedValues as expectedValue>
* ${expectedValue} <#if optionObj.defaultValue?has_content && expectedValue == optionObj.defaultValue> (default)</#if>
</#list>
2022-01-20 13:21:23 +00:00
</#macro>
2023-04-17 06:44:34 +00:00
<#macro list options buildIcon=true anchor=true>
2023-02-21 13:44:39 +00:00
[cols="12a,4",role="options"]
2022-01-20 13:21:23 +00:00
|===
2023-02-21 13:44:39 +00:00
| |Value
2022-01-20 13:21:23 +00:00
<#list options as option>
|
2023-02-21 13:44:39 +00:00
[.options-key]#``${option.key}``# <#if buildIcon><#if option.build>[.none]#icon:tools[role=options-build]#</#if></#if>
2022-01-20 13:21:23 +00:00
[.options-description]#${option.description}#
2023-04-17 06:44:34 +00:00
[<#if anchor>#option-extended-${option.key},</#if>role="options-extended"]
2023-02-21 13:44:39 +00:00
--
<#if option.descriptionExtended?has_content>[.options-description-extended]#${option.descriptionExtended!}#</#if>
2022-01-20 13:21:23 +00:00
2023-02-21 13:44:39 +00:00
*CLI:* `${option.keyCli}` +
*Env:* `${option.keyEnv}`
--
2023-12-13 13:48:12 +00:00
2024-03-07 20:36:43 +00:00
<#if option.enabledWhen?has_content>
${option.enabledWhen!}
</#if>
2023-12-13 13:48:12 +00:00
<#if option.deprecated?has_content>
2024-02-29 11:07:28 +00:00
<#-- Either mark the whole option as deprecated, or just selected values -->
<#if !option.deprecated.deprecatedValues?has_content>
2023-12-13 13:48:12 +00:00
*DEPRECATED.*
2024-02-29 11:07:28 +00:00
</#if>
2023-12-13 13:48:12 +00:00
${option.deprecated.note!}<#if option.deprecated.newOptionsKeys?has_content><#if option.deprecated.note?has_content> </#if>Use: <#list option.deprecated.newOptionsKeys as key>`+${key}+`<#if key?has_next>, </#if></#list>.</#if>
2024-02-29 11:07:28 +00:00
<#if option.deprecated.deprecatedValues?has_content>
*Deprecated values: <#list option.deprecated.deprecatedValues as value>`+${value}+`<#if value?has_next>, </#if></#list>*
</#if>
2023-12-13 13:48:12 +00:00
</#if>
2023-02-21 13:44:39 +00:00
|<#if option.expectedValues?has_content>
2024-08-13 08:35:40 +00:00
<#list option.expectedValues as value>`+${value!}+`<#if option.defaultValue?has_content && value = option.defaultValue> (default)</#if><#if value?has_next>, </#if></#list><#if !option.strictExpectedValues>, or any</#if>
2023-02-21 13:44:39 +00:00
<#else>
<#if option.defaultValue?has_content>[.options-default]#`+${option.defaultValue!}+`# (default)</#if><#if option.type?has_content && option.defaultValue?has_content> or </#if><#if option.type?has_content && !option.expectedValues?has_content>any `+${option.type!}+`</#if>
</#if>
2022-01-20 13:21:23 +00:00
</#list>
|===
2024-08-13 08:35:40 +00:00
</#macro>