Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime boundary module.

Handles OS-facing capabilities: processes, environment, time, terminal. All code in this module may use mutation, imperative loops, and I/O.

Command construction and result interpretation belong in domain code.

§Module Organization

This module provides thin wrappers around OS capabilities. Pure business logic should live in domain modules.

§Key Principles

  • Use traits to abstract OS capabilities for testing
  • Keep this module focused on execution, not business decisions
  • Return raw results, let domain code interpret them

Modules§

clock
Clock and time utilities in the runtime boundary.
environment
Environment access in the runtime boundary.
process_executor
Process executor utilities in the runtime boundary.
streaming
Streaming I/O utilities for runtime boundary.
terminal
Terminal I/O utilities in the runtime boundary.