ShellRuntime

interface ShellRuntime(source)

Where commands run. start launches command through the runtime's shell; the process must end when destroyed (children included).

Inheritors

Properties

Link copied to clipboard
abstract val description: String

Shown to the model, e.g. "Alpine Linux 3.24 (aarch64) with busybox and apk".

Link copied to clipboard
abstract val isolated: Boolean

Whether commands are isolated from the app and device (a sandbox); if not, they need approval by default.

Functions

Link copied to clipboard
open suspend fun prepare()

One-time setup before the first command (e.g. installing a root filesystem); idempotent.

Link copied to clipboard
abstract fun start(command: String): Process