All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.serpro69.semverkt.release.configuration.GitRepoConfig.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy