mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-05-01 23:24:35 +02:00
build(Needs bump): Bump dependencies to support new patch options fields
This commit is contained in:
parent
a60d07fc5d
commit
6670d89c74
@ -3,14 +3,14 @@ shadow = "8.1.1"
|
|||||||
kotlin-test = "1.8.20-RC"
|
kotlin-test = "1.8.20-RC"
|
||||||
kotlinx-coroutines-core = "1.7.3"
|
kotlinx-coroutines-core = "1.7.3"
|
||||||
picocli = "4.7.3"
|
picocli = "4.7.3"
|
||||||
revanced-patcher = "17.0.0"
|
revanced-patcher = "18.0.0"
|
||||||
revanced-library = "1.1.4"
|
revanced-library = "1.1.5"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin-test" }
|
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin-test" }
|
||||||
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
|
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
|
||||||
picocli = { module = "info.picocli:picocli", version.ref = "picocli" }
|
picocli = { module = "info.picocli:picocli", version.ref = "picocli" }
|
||||||
revanced-patcher = { module = "app.revanced.revanced-patcher:revanced-patcher", version.ref = "revanced-patcher" }
|
revanced-patcher = { module = "app.revanced:revanced-patcher", version.ref = "revanced-patcher" }
|
||||||
revanced-library = { module = "app.revanced:revanced-library", version.ref = "revanced-library" }
|
revanced-library = { module = "app.revanced:revanced-library", version.ref = "revanced-library" }
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
|
@ -58,12 +58,16 @@ internal object ListPatchesCommand : Runnable {
|
|||||||
|
|
||||||
fun PatchOption<*>.buildString() = buildString {
|
fun PatchOption<*>.buildString() = buildString {
|
||||||
appendLine("Title: $title")
|
appendLine("Title: $title")
|
||||||
appendLine("Description: $description")
|
description?.let { appendLine("Description: $it") }
|
||||||
|
default?.let {
|
||||||
value?.let {
|
|
||||||
appendLine("Key: $key")
|
appendLine("Key: $key")
|
||||||
append("Value: $it")
|
append("Default: $it")
|
||||||
} ?: append("Key: $key")
|
} ?: append("Key: $key")
|
||||||
|
|
||||||
|
values?.let { values ->
|
||||||
|
appendLine("\nValid values:")
|
||||||
|
append(values.map { "${it.value} (${it.key})" }.joinToString("\n").prependIndent("\t"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Patch<*>.buildString() = buildString {
|
fun Patch<*>.buildString() = buildString {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user