io.github.serpro69.semverkt.release.configuration.GitRepoConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semver.kt-release Show documentation
Show all versions of semver.kt-release Show documentation
https://github.com/serpro69/semver.kt
package io.github.serpro69.semverkt.release.configuration
import java.nio.file.Path
import kotlin.io.path.Path
/**
* Git repository configuration
*
* @property directory local path of a git repository; defaults to `.`
* @property remoteName name of the remote of this git repository; defaults to `origin`
*/
interface GitRepoConfig {
val directory: Path get() = Path(".")
val remoteName: String get() = "origin"
fun jsonString(): String {
return """
"repo": { "directory": "$directory", "remoteName": "$remoteName" }
""".trimIndent()
}
}