View Source Kvasir.Command.Registry (kvasir_agent v0.0.18)
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
@spec commands() :: map()
All available commands indexed on type.
examples
Examples
iex> commands()
[<cmd>]
@spec list() :: [module()]
List all commands.
examples
Examples
iex> list()
[<cmd>]
List all commands matching the filter.
examples
Examples
iex> list(namespace: "...")
[<cmd>]
Lookup a command by a given type
.
examples
Examples
iex> lookup("some-command")
<cmd>
iex> lookup("none-existing")
nil