         end
     end
 
-
     # TODO: add various flags to the add_cmd. 
     def add_cmd(file_path) do
         #file_data = file_path |> File.open!([:read, :binary]) |> IO.binread(:all)


    def key_list do
        request_get("/key/list")
    end
    
    defp shutdown(pid, term \\ []) do

defmodule IpfsElixir.Api do

    ## TODO: add (files, name, object, pin, p2p,
    ##  filestore, shutdown, repo, resolve, stats, tar)

    import IpfsConnection
    
    # starts the ipfs daemon asynchronously on a elixir thread. 
    # recall this function with the start? of false and a flag of :normal or :kill to shutdown the process.
