mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-09-05 14:05:28 +02:00
feat: remove option --with-descriptions
This commit is contained in:
parent
31e4a41dd2
commit
07a423b19e
@ -71,9 +71,6 @@ internal object MainCommand : Runnable {
|
|||||||
|
|
||||||
@Option(names = ["--with-packages"], description = ["List patches with compatible packages"])
|
@Option(names = ["--with-packages"], description = ["List patches with compatible packages"])
|
||||||
var withPackages: Boolean = false
|
var withPackages: Boolean = false
|
||||||
|
|
||||||
@Option(names = ["--with-descriptions"], description = ["List patches with their descriptions"])
|
|
||||||
var withDescriptions: Boolean = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class PatchingArgs {
|
class PatchingArgs {
|
||||||
@ -228,14 +225,15 @@ internal object MainCommand : Runnable {
|
|||||||
append(packageName)
|
append(packageName)
|
||||||
append("\t")
|
append("\t")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add patch name
|
// Add patch name
|
||||||
val patchName = patch.patchName.padStart(25)
|
val patchName = patch.patchName.padStart(25)
|
||||||
append(patchName)
|
append(patchName)
|
||||||
|
|
||||||
// Add description if flag is set.
|
// Add description if flag is set.
|
||||||
if (args.patchArgs?.listingArgs?.withDescriptions == true) {
|
append("\t")
|
||||||
append("\t")
|
append(patch.description)
|
||||||
append(patch.description)
|
|
||||||
}
|
|
||||||
// Add compatible versions, if flag is set
|
// Add compatible versions, if flag is set
|
||||||
if (args.patchArgs?.listingArgs?.withVersions == true) {
|
if (args.patchArgs?.listingArgs?.withVersions == true) {
|
||||||
val compatibleVersions = compatiblePackage.versions.joinToString(separator = ", ")
|
val compatibleVersions = compatiblePackage.versions.joinToString(separator = ", ")
|
||||||
|
Loading…
Reference in New Issue
Block a user