+ {:error, e} -> shell_error("Error while following #{target}: #{inspect(e)}")
+ end
+ end
+
+ def run(["list"]) do
+ start_pleroma()
+
+ with {:ok, list} <- Relay.list(true) do
+ list |> Enum.each(&shell_info(&1))
+ else
+ {:error, e} -> shell_error("Error while fetching relay subscription list: #{inspect(e)}")