initial commit
Some checks failed
/ publish (push) Failing after 53s

This commit is contained in:
2025-07-12 20:23:00 +02:00
commit 3565632465
14 changed files with 717 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package com.infendro.shell
object Shell {
suspend fun run(
command: Array<String>,
directory: String? = null,
): Result {
return execute(command, directory)
}
class Result(
val code: Int,
val value: String,
)
}
internal expect suspend fun execute(
command: Array<String>,
directory: String?,
): Shell.Result