handle_command

Function handle_command 

Source
pub fn handle_command(
    raw_cmd: &str,
    args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>>
Expand description

Dispatch an IPC command by name with JSON arguments. Supports names like "mycommands/greet" or even "/mycommands/greet" and percent-encoded paths (e.g. %2Fmycommands%2Fgreet).