mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-25 03:25:48 +01:00
fix: show actual version in CLI
This commit is contained in:
parent
4cc2f5269f
commit
1dcdbc9fe9
@ -13,8 +13,16 @@ import picocli.CommandLine.*
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
|
|
||||||
|
private class CLIVersionProvider : IVersionProvider {
|
||||||
|
override fun getVersion() = arrayOf(
|
||||||
|
MainCommand::class.java.`package`.implementationVersion ?: "unknown"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
name = "ReVanced-CLI", version = ["1.0.0"], mixinStandardHelpOptions = true
|
name = "ReVanced-CLI",
|
||||||
|
mixinStandardHelpOptions = true,
|
||||||
|
versionProvider = CLIVersionProvider::class
|
||||||
)
|
)
|
||||||
internal object MainCommand : Runnable {
|
internal object MainCommand : Runnable {
|
||||||
@ArgGroup(exclusive = false, multiplicity = "1")
|
@ArgGroup(exclusive = false, multiplicity = "1")
|
||||||
|
Loading…
Reference in New Issue
Block a user