mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-26 20:15:48 +01:00
fix: Make CLI ArgGroup non-exclusive to be able to disable and enable patches at the same time
This commit is contained in:
parent
18e56e6ff4
commit
1bb0d13726
@ -29,11 +29,11 @@ internal object PatchCommand : Runnable {
|
||||
@Spec
|
||||
private lateinit var spec: CommandSpec
|
||||
|
||||
@ArgGroup(multiplicity = "0..*")
|
||||
@ArgGroup(exclusive = false, multiplicity = "0..*")
|
||||
private var selection = mutableSetOf<Selection>()
|
||||
|
||||
internal class Selection {
|
||||
@ArgGroup(exclusive = false, multiplicity = "1")
|
||||
@ArgGroup(exclusive = false)
|
||||
internal var enabled: EnableSelection? = null
|
||||
|
||||
internal class EnableSelection {
|
||||
@ -65,7 +65,7 @@ internal object PatchCommand : Runnable {
|
||||
internal var options = mutableMapOf<String, Any?>()
|
||||
}
|
||||
|
||||
@ArgGroup(exclusive = false, multiplicity = "1")
|
||||
@ArgGroup(exclusive = false)
|
||||
internal var disable: DisableSelection? = null
|
||||
|
||||
internal class DisableSelection {
|
||||
@ -291,7 +291,6 @@ internal object PatchCommand : Runnable {
|
||||
patcherTemporaryFilesPath,
|
||||
aaptBinaryPath?.path,
|
||||
patcherTemporaryFilesPath.absolutePath,
|
||||
true,
|
||||
),
|
||||
).use { patcher ->
|
||||
val packageName = patcher.context.packageMetadata.packageName
|
||||
|
Loading…
Reference in New Issue
Block a user