pub fn run_command(
session_state: &mut SessionState,
global_state: &mut GlobalState,
cmd: &str,
args: Vec<String>,
) -> Result<Option<Content>, Content>
Expand description
Runs a command by either sending it to the server or processing it locally.
This is the main entry point for executing chat commands. It parses the command, preprocesses its arguments, and then either:
- Sends server commands to the server for processing
- Processes client commands locally