From 54a984dd9525a72626e01ae9bdf623991e31249f Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Sun, 26 Nov 2023 00:24:15 +0300 Subject: [PATCH 1/2] refactor: fix typo --- src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt index b9e11b08..5b50d1b1 100644 --- a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt @@ -51,7 +51,7 @@ internal object ListPatchesCommand : Runnable { @Option( names = ["-i", "--index"], - description = ["List the index of of each patch in relation to the supplied patch bundles."], + description = ["List the index of each patch in relation to the supplied patch bundles."], showDefaultValue = ALWAYS ) private var withIndex: Boolean = true From 22e849141c619e26113449f5c3a9398df938a503 Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Sun, 26 Nov 2023 01:39:37 +0300 Subject: [PATCH 2/2] fix: remove "INFO:" from the `list-patches` output --- .../kotlin/app/revanced/cli/command/ListPatchesCommand.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt index 5b50d1b1..1e15f48f 100644 --- a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt @@ -6,13 +6,10 @@ import app.revanced.patcher.patch.options.PatchOption import picocli.CommandLine.* import picocli.CommandLine.Help.Visibility.ALWAYS import java.io.File -import java.util.logging.Logger @Command(name = "list-patches", description = ["List patches from supplied patch bundles."]) internal object ListPatchesCommand : Runnable { - private val logger = Logger.getLogger(ListPatchesCommand::class.java.name) - @Parameters( description = ["Paths to patch bundles."], arity = "1..*" ) @@ -118,6 +115,6 @@ internal object ListPatchesCommand : Runnable { val filtered = packageName?.let { patches.filter { (_, patch) -> patch.filterCompatiblePackages(it) } } ?: patches - if (filtered.isNotEmpty()) logger.info(filtered.joinToString("\n\n") { it.buildString() }) + if (filtered.isNotEmpty()) println(filtered.joinToString("\n\n") { it.buildString() }) } } \ No newline at end of file