Kvasir.Command.Registry (kvasir_agent v0.0.14) 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 all commands matching the filter.
Examples
iex> list(namespace: "...")
[<cmd>]
Specs
Lookup a command by a given type
.
Examples
iex> lookup("some-command")
<cmd>
iex> lookup("none-existing")
nil