execute_chat_command

Function execute_chat_command 

Source
pub(super) async fn execute_chat_command(
    cmd_line: &str,
    context: CommandContext,
) -> Result<()>
Expand description

Executes a chat command.

This function parses a command line string and dispatches it to the appropriate command handler.

§Arguments

  • cmd_line - The full command line string entered by the user.
  • context - The CommandContext providing access to the application’s state.

§Returns

A Result indicating success or failure of the command execution.