route_command

Function route_command 

Source
async fn route_command(
    state: &Arc<AppState>,
    cmd: &str,
    args: &Value,
) -> Result<Value, String>
Expand description

Route a command to the appropriate handler.

Command names use snake_case to match the Tauri command names. The frontend sends these exact names via invokeCommand().