2026-01-13 18:01:22 +01:00
2026-01-13 18:01:22 +01:00
2025-12-13 01:51:47 +01:00
2025-12-14 00:07:46 +01:00
2025-07-12 20:23:00 +02:00
2025-12-14 00:07:46 +01:00
2025-10-03 12:20:25 +02:00
2025-10-03 12:20:25 +02:00
2025-07-12 20:23:00 +02:00
2025-12-14 00:08:23 +01:00
2025-12-13 01:51:47 +01:00

shell-kt

shell-kt is a Kotlin Multiplatform library that enables the execution of shell commands.

Targets

Target Status
JVM Supported
JavaScript Supported
Native (Linux) Supported
Native (Windows) Not Supported

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.0.0")
}

Usage

import com.infendro.shell.Shell

suspend fun main() {
    // the command to execute
    val command = arrayOf("echo", "Hello World!")

    // execute the command
    val result = Shell.run(command)

    println(result.code)  // 0
    println(result.value) // Hello World!
}
Description
No description provided
Readme 141 KiB
Languages
Kotlin 100%