package
Version:
v0.4.2
Opens a new window with list of versions in this module.
Published: Oct 17, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cmdrun runs host commands (ip, nft, mkfs.ext4) behind a small
interface so that callers can be tested with a fake.
Call is one recorded invocation of a Fake.
String renders the call as a shell-like line.
Exec runs real commands.
Run implements Runner. A non-zero exit becomes an error carrying the command
line and its output.
Fake records calls and answers them with Handle (nil means success).
Lines returns the recorded calls as strings.
Runner runs a command to completion and returns its combined output.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.