mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-07 09:45:50 +01:00
add: proper console output
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
f4a7860bb3
commit
59c423bea0
@ -16,10 +16,10 @@ internal class Patcher {
|
|||||||
// add patches, but filter incompatible or excluded patches
|
// add patches, but filter incompatible or excluded patches
|
||||||
patcher.addPatchesFiltered()
|
patcher.addPatchesFiltered()
|
||||||
// apply patches
|
// apply patches
|
||||||
for (patchResult in patcher.applyPatches {
|
for ((meta, result) in patcher.applyPatches {
|
||||||
println("Applying: $it")
|
println("Applying $it.")
|
||||||
}) {
|
}) {
|
||||||
println(patchResult)
|
println("Applied ${meta.name}. The result was $result.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// write output file
|
// write output file
|
||||||
@ -71,7 +71,8 @@ internal class Patcher {
|
|||||||
it == packageVersion
|
it == packageVersion
|
||||||
}
|
}
|
||||||
}) {
|
}) {
|
||||||
// TODO: report to stdout
|
|
||||||
|
println("Skipping ${patch.metadata.name} due to incompatibility with current package $packageName.")
|
||||||
return@patch
|
return@patch
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +80,7 @@ internal class Patcher {
|
|||||||
return@patch
|
return@patch
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: report to stdout
|
println("Adding ${patch.metadata.name}.")
|
||||||
includedPatches.add(patch)
|
includedPatches.add(patch)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user