build(Needs bump): Bump dependencies to support new patch options fields

This commit is contained in:
oSumAtrIX
2023-10-22 23:38:34 +02:00
parent a60d07fc5d
commit 6670d89c74
2 changed files with 11 additions and 7 deletions

View File

@@ -58,12 +58,16 @@ internal object ListPatchesCommand : Runnable {
fun PatchOption<*>.buildString() = buildString {
appendLine("Title: $title")
appendLine("Description: $description")
value?.let {
description?.let { appendLine("Description: $it") }
default?.let {
appendLine("Key: $key")
append("Value: $it")
append("Default: $it")
} ?: append("Key: $key")
values?.let { values ->
appendLine("\nValid values:")
append(values.map { "${it.value} (${it.key})" }.joinToString("\n").prependIndent("\t"))
}
}
fun Patch<*>.buildString() = buildString {