Skip to main content

parse_slash_command

Function parse_slash_command 

Source
pub fn parse_slash_command(raw: &str) -> SlashCmd
Expand description

Parse a slash-command input line (without the leading /) into a SlashCmd. Returns SlashCmd::Unknown if the command isn’t in the registry. Shared between the TUI dispatcher (C8) and any non-interactive command dispatch.