pub fn handle_json_command(
state_path: &Path,
command: &str,
options_json: &str,
) -> Result<String, i32>Expand description
Dispatches the native JSON command surface without a shell bridge.
§Parameters
state_path: Input consumed bycrate::runtime::json_commands::handle_json_command.command: Input consumed bycrate::runtime::json_commands::handle_json_command.options_json: Input consumed bycrate::runtime::json_commands::handle_json_command.
§Returns
Returns the successful value produced by crate::runtime::json_commands::handle_json_command or an error when the operation fails.
§Errors
Returns an error value when crate::runtime::json_commands::handle_json_command cannot complete successfully.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::handle_json_command(todo!(), todo!(), todo!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.