Merge "check-flagged-apis: add support for command line options" into main
This commit is contained in:
commit
4feb33fefc
2 changed files with 14 additions and 1 deletions
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue