* [WIP] break out a few contexts, start refactoring fast index modules * [WIP] more contexts, this time around slow indexing and downloads * [WIP] got all tests passing * [WIP] Added moduledocs * Built a genserver to rename old jobs on boot * Added a module naming check; moved things around * Fixed specs
11 lines
454 B
Elixir
11 lines
454 B
Elixir
defmodule Pinchflat.YtDlp.BackendCommandRunner do
|
|
@moduledoc """
|
|
A behaviour for running CLI commands against a downloader backend (yt-dlp).
|
|
|
|
Used so we can implement Mox for testing without actually running the
|
|
yt-dlp command.
|
|
"""
|
|
|
|
@callback run(binary(), keyword(), binary()) :: {:ok, binary()} | {:error, binary(), integer()}
|
|
@callback run(binary(), keyword(), binary(), keyword()) :: {:ok, binary()} | {:error, binary(), integer()}
|
|
end
|