Ecbolic v0.2.4 Ecbolic.Store View Source
This GenServer is responsible for storing all functions and
the related help-data.
Link to this section Summary
Types
An entry used by Ecbolic.Store to store information about a
function and related help-data
Functions
Returns all stored help entries
Returns all stored help entries, but mapped to their group
Returns a specification to start this module under a supervisor
Clears the internal state of the store
Returns all help entries for a given group. An empty list will be returned, if the group does not exist
Returns a list of all group names
Loads help from the given function
Returns the help entry for the asked action
Link to this section Types
help() :: %Ecbolic.Help{
help: String.t(),
help_alias: Ecbolic.atom_or_string(),
help_group: Ecbolic.atom_or_string()
}
An entry used by Ecbolic.Store to store information about a
function and related help-data
Link to this section Functions
Returns all stored help entries
all_grouped() :: {:ok, %{optional(Ecbolic.atom_or_string()) => [help()]}}
Returns all stored help entries, but mapped to their group
Returns a specification to start this module under a supervisor.
See Supervisor.
Clears the internal state of the store.
This is neccessary if you want to reload the entries. If you try to do so, without calling this function first, you’ll have duplicated entries.
Returns all help entries for a given group. An empty list will be returned, if the group does not exist.
Note: Ungrouped functions are given the
:default-group
Returns a list of all group names.
Loads help from the given function.
lookup([Ecbolic.atom_or_string()]) :: {:ok, [help()]}
lookup([Ecbolic.atom_or_string()]) :: {:ok, [help()]} | {:error, String.t()}
Returns the help entry for the asked action.