Slash command: /command — run a shell command.
Summary
Types
@type result() :: {:events, [Vibe.UI.Event.t()]} | {:command, atom() | {atom(), map()}} | :compact | :ignore
@type spec() :: Vibe.UI.SlashCommands.Spec.t() | %{ :name => String.t(), optional(:aliases) => [String.t()], optional(:description) => String.t(), optional(:selectors) => [atom()] }
Callbacks
@callback run(String.t(), Vibe.UI.State.t()) :: result()
@callback selector_action(term(), Vibe.UI.State.t()) :: result() | {:command, String.t()}
@callback spec() :: spec()