Exddcutil.Runner behaviour (Exddcutil v0.1.0)

View Source

Behaviour for executing ddcutil commands.

This behaviour allows injection of test runners for testing without actual hardware.

Summary

Callbacks

Executes a ddcutil command with the given arguments.

Callbacks

run(list)

@callback run([String.t()]) :: {:ok, String.t()} | {:error, any()}

Executes a ddcutil command with the given arguments.

Returns {:ok, output} on success or {:error, reason} on failure.