Merge "check-flagged-apis: add support for command line options" into main

This commit is contained in:
Mårten Kongstad 2024-04-17 05:52:09 +00:00 committed by Gerrit Code Review
commit 4feb33fefc
2 changed files with 14 additions and 1 deletions

View file

@ -21,5 +21,8 @@ java_binary_host {
srcs: [ srcs: [
"src/**/*.kt", "src/**/*.kt",
], ],
static_libs: [
"metalava-tools-common-m2-deps",
],
main_class: "com.android.checkflaggedapis.Main", main_class: "com.android.checkflaggedapis.Main",
} }

View file

@ -17,4 +17,14 @@
package com.android.checkflaggedapis package com.android.checkflaggedapis
fun main() = println("hello world") import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.ProgramResult
class CheckCommand : CliktCommand() {
override fun run() {
println("hello world")
throw ProgramResult(0)
}
}
fun main(args: Array<String>) = CheckCommand().main(args)