     ret = cont.(res)
     {:reply, ret, state}
   end
-  
   def handle_call({:debug, onoff}, _from, state) do
     Logger.debug("Setting debug #{inspect onoff}")
     {:reply, {:ok, :ok}, %{ state | debug: onoff }}

    cmdopts = cmdopts ++ [:stream, :line, :use_stdio, args: args]
    port = Port.open({:spawn_executable, cmd}, cmdopts)
    Port.connect(port, server)
    Logger.debug("Starting command #{cmd} at port #{inspect port}")

    {:ok, client} = RPC.Client.start_link [
        writef: fn line ->

    Logger.warn("Command got info #{inspect any}")
    {:noreply, state}
  end
end
