scoop:scoop.platform:0.1.0
scoop.platform.process
API
-
class
ChildProcess
An owned child process and any untaken pipe endpoints. Close closes retained pipes and waits for termination; it does not automatically kill a running process.
-
class
Command
A process launch description with copied argument/environment data, an explicit working directory, and standard-stream routing. Arguments are passed directly without shell interpretation. Windows uses CRT argument encoding and leaves ordinary nonempty arguments unquoted. Scripts passed to an explicitly selected interpreter still follow its syntax.
- class CommandBuilder
-
enum
ExitStatus
Distinguishes normal process exit from signal termination.
-
struct
ProcessOutput
Collected stdout, stderr, and final status from process communication.
-
class
ProcessTimeoutException
The communication deadline expired. The arrays contain bytes received before cleanup completed; unread pipe data is not included. The owned child has been killed and reaped unless cleanup also failed, in which case ResourceUseException retains this exception and the cleanup error.
-
enum
Stdio
The standard-stream routing chosen when spawning a child process.
-
function
command
Configures one complete value; execution remains explicit.
- function copy
-
function
requirePtySize
Validates cell dimensions accepted by the native pseudoterminal on this target.
-
function
spawnPtyNative
Launches a child with all standard streams connected to a pseudoterminal. Used by asyncio's native backends. The caller owns the returned ScoopPlatformPty and must release it through scoop_platform_pty_close after retiring all native borrows.
-
function
suspendCurrentProcess
Requests Unix job-control suspension; returns after continuation or an ignored signal.