DirenvConfig.Client (direnv_config v0.1.0)

Copy Markdown View Source

Summary

Types

t()

@type t() :: %DirenvConfig.Client{
  dc_binary: String.t(),
  mode: :native | :cli,
  store_path: String.t()
}

Functions

bump(client)

@spec bump(t()) :: {:ok, non_neg_integer()} | {:error, term()}

get(client, config, path \\ nil)

@spec get(t(), String.t(), String.t() | nil) :: {:ok, term()} | :error

get!(client, config, path \\ nil)

@spec get!(t(), String.t(), String.t() | nil) :: term()

get_bool(client, config, path)

@spec get_bool(t(), String.t(), String.t()) :: {:ok, boolean()} | :error

get_int(client, config, path)

@spec get_int(t(), String.t(), String.t()) :: {:ok, integer()} | :error

get_string(client, config, path)

@spec get_string(t(), String.t(), String.t()) :: {:ok, String.t()} | :error

has_changed?(client, since)

@spec has_changed?(t(), non_neg_integer()) :: boolean()

list_configs(client)

@spec list_configs(t()) :: {:ok, [String.t()]} | :error

new(opts \\ [])

@spec new(keyword()) :: t()

set(client, config, key, value, opts \\ [])

@spec set(t(), String.t(), String.t(), String.t(), keyword()) ::
  :ok | {:error, term()}

unset(client, config, keys, opts \\ [])

@spec unset(t(), String.t(), [String.t()], keyword()) :: :ok | {:error, term()}

version(client)

@spec version(t()) :: non_neg_integer()