Skip to main content

Module command

Module command 

Source
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§

SystemCommandRunner
What: Real command runner backed by std::process::Command.

Enums§

CommandError
What: Error type capturing command spawning, execution, and decoding failures.

Traits§

CommandRunner
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 SystemCommandRunner and capture stdout as UTF-8.