Expand description
Shared command execution abstraction.
This module is the single home for synchronous, capture-only command
execution in Pacsea. It provides the CommandRunner trait for
dependency-injected execution, the production SystemCommandRunner,
the run_capture convenience wrapper, and the binary_available
capability probe.
Interactive, PTY-based, and terminal-spawning command paths (installs, privilege escalation, clipboard, browsers) intentionally do not go through this module.
Structs§
- System
Command Runner - What: Real command runner backed by
std::process::Command.
Enums§
- Command
Error - What: Error type capturing command spawning, execution, and decoding failures.
Traits§
- Command
Runner - What: Abstract command execution interface used for spawning helper
binaries such as
pacman.
Functions§
- binary_
available - What: Check whether an external binary is available on the system.
- run_
capture - What: Run a command via
SystemCommandRunnerand capture stdout as UTF-8.