501 B
501 B
shell-kt
shell-kt is a Kotlin Multiplatform library that enables the execution of shell commands.
Installation
Add the following to your build.gradle.kts.
repositories {
maven("https://git.infendro.com/api/packages/Infendro/maven")
}
dependencies {
implementation("com.infendro:shell:1.1.0")
}
Usage
suspend fun main() {
val result = execute("echo", "Hello World!")
println(result.code) // 0
println(result.value) // Hello World!
}