initial Spring app

This commit is contained in:
Michael Hoennig
2026-06-09 11:55:23 +02:00
parent 18b0b3e537
commit b47489ab2b
19 changed files with 570 additions and 1 deletions
@@ -0,0 +1,22 @@
package de.hoennig.gittally
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import picocli.CommandLine
import picocli.CommandLine.IFactory
import kotlin.system.exitProcess
@SpringBootApplication
class GitTallyApplication(
private val factory: IFactory,
private val rootCommand: GitTallyCommand,
) : CommandLineRunner {
override fun run(vararg args: String) {
exitProcess(CommandLine(rootCommand, factory).execute(*args))
}
}
fun main(args: Array<String>) {
runApplication<GitTallyApplication>(*args)
}