View Source Runlet.History (runlet v1.2.3)

Runlet command history tracked by user

Link to this section Summary

Functions

Add an item into a user's history.

Complete history for a user.

Delete an item or items from a user's history.

Return the history for a user corresponding to a number or a list of numbers.

Link to this section Types

Link to this section Functions

@spec add(binary(), binary(), any()) :: :ok | {:error, any()}

Add an item into a user's history.

@spec all(binary()) :: [binary()]

Complete history for a user.

@spec delete(binary(), integer() | [integer()]) :: :ok | {:error, any()}

Delete an item or items from a user's history.

@spec lookup(binary(), integer() | [integer()]) :: nil | t() | [t()]

Return the history for a user corresponding to a number or a list of numbers.