kvasir_agent v0.0.3 Kvasir.Command.Registry 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

Link to this function commands() View Source
commands() :: map()

All available commands indexed on type.

Examples

iex> commands()
[<cmd>]

List all commands.

Examples

iex> list()
[<cmd>]
Link to this function list(filter) View Source
list(filter :: Keyword.t()) :: [module()]

List all commands matching the filter.

Examples

iex> list(namespace: "...")
[<cmd>]
Link to this function lookup(type) View Source
lookup(String.t()) :: module() | nil

Lookup a command by a given type.

Examples

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