Raxol.System.Interaction behaviour (Raxol v0.5.0)
View SourceBehaviour for abstracting system interactions like running commands, finding executables, and getting OS type. Allows for easier testing.
Summary
Callbacks
Finds the full path to an executable. Returns nil
if not found.
Returns the OS type.
Executes a system command.
Returns {output, exit_status}
on success.
Can raise exceptions on errors depending on the implementation.
Options can be passed to control execution (e.g., stderr_to_stdout
).
Types
Callbacks
Finds the full path to an executable. Returns nil
if not found.
@callback get_os_type() :: os_type()
Returns the OS type.
Executes a system command.
Returns {output, exit_status}
on success.
Can raise exceptions on errors depending on the implementation.
Options can be passed to control execution (e.g., stderr_to_stdout
).