* [WIP] add settings sidebar entry and placeholder page * [WIP] added placeholder UI and logic for settings form * Added column and UI for apprise server * Add some tests * Added placeholder command runner for apprise * [WIP] Adding apprise package * Added apprise command runner * Hooked up apprise notification module * Ensured apprise was running in verbose mode * Updated wording of apprise notification * Added apprise to README
12 lines
451 B
Elixir
12 lines
451 B
Elixir
defmodule Pinchflat.Notifications.AppriseCommandRunner do
|
|
@moduledoc """
|
|
A behaviour for running CLI commands against a notification backend (apprise).
|
|
|
|
Used so we can implement Mox for testing without actually running the
|
|
apprise command.
|
|
"""
|
|
|
|
@callback run(binary(), keyword()) :: :ok | {:error, binary()}
|
|
@callback run(List.t(), keyword()) :: :ok | {:error, binary()}
|
|
@callback version() :: {:ok, binary()} | {:error, binary()}
|
|
end
|