From af32572f29d0f0a45ee5c3e01ba4cf1f91fe2f10 Mon Sep 17 00:00:00 2001 From: bogadana <30848157+bogadana@users.noreply.github.com> Date: Tue, 21 Jun 2022 23:54:34 +0200 Subject: [PATCH] feat: show description when listing patches --- src/main/kotlin/app/revanced/cli/command/MainCommand.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index 1131d7d9..323e29dd 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -4,6 +4,7 @@ import app.revanced.cli.patcher.Patcher import app.revanced.cli.signing.Signing import app.revanced.patcher.PatcherOptions import app.revanced.patcher.extensions.PatchExtensions.patchName +import app.revanced.patcher.extensions.PatchExtensions.description import app.revanced.patcher.util.patch.implementation.JarPatchBundle import app.revanced.utils.adb.Adb import picocli.CommandLine.* @@ -79,7 +80,7 @@ internal object MainCommand : Runnable { override fun run() { if (args.lArgs?.listOnly == true) { for (patchBundlePath in args.patchBundles) for (patch in JarPatchBundle(patchBundlePath).loadPatches()) { - println("[available] ${patch.patchName}") + println("[available] ${patch.patchName}: ${patch.description}") } return }