commonMain.git.GitSamples.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommandsamples-jvm Show documentation
Show all versions of kommandsamples-jvm Show documentation
Kotlin DSL for popular CLI commands.
package pl.mareklangiewicz.kommand.git
import pl.mareklangiewicz.annotations.DelicateApi
import pl.mareklangiewicz.kommand.samples.*
@OptIn(DelicateApi::class)
data object GitSamples {
val hash = gitHash() s "git rev-parse HEAD"
val help = gitHelp() s "git help"
val helpLog = gitHelp("log") s "git help log"
val helpOption = git { -GitOpt.Help } s "git --help"
val version = git { -GitOpt.Version } s "git --version"
val status = gitStatus() s "git status"
}