Kvasir.Command.Registry (kvasir_agent v0.0.13) View Source

Kvasir Command Registry.

Link to this section Summary

Functions

All available commands indexed on type.

List all commands.

List all commands matching the filter.

Lookup a command by a given type.

Link to this section Functions

Specs

commands() :: map()

All available commands indexed on type.

Examples

iex> commands()
[<cmd>]

Specs

list() :: [module()]

List all commands.

Examples

iex> list()
[<cmd>]

Specs

list(filter :: Keyword.t()) :: [module()]

List all commands matching the filter.

Examples

iex> list(namespace: "...")
[<cmd>]

Specs

lookup(String.t()) :: module() | nil

Lookup a command by a given type.

Examples

iex> lookup("some-command")
<cmd>
iex> lookup("none-existing")
nil