Skip to main content

handle_json_command

Function handle_json_command 

Source
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

§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!());