Settings (fnord v0.8.12)
View SourceSummary
Functions
Delete a value from the settings store.
Get a value from the settings store.
Get the project specified with --project. If the project name is not set, an error tuple is returned.
Get the path to the store root directory.
Check if the --project option is set.
Set a value in the settings store.
Set the project name for the --project option.
Get the path to the settings file. If the file does not exist, it will be created.
Types
Functions
Delete a value from the settings store.
Get a value from the settings store.
@spec get_selected_project() :: {:ok, binary()} | {:error, :project_not_set}
Get the project specified with --project. If the project name is not set, an error tuple is returned.
@spec home() :: binary()
Get the path to the store root directory.
@spec new() :: t()
Check if the --project option is set.
Set a value in the settings store.
@spec set_project(binary()) :: :ok
Set the project name for the --project option.
@spec settings_file() :: binary()
Get the path to the settings file. If the file does not exist, it will be created.