Skip to main content

execute_script

Function execute_script 

Source
pub fn execute_script(source: &str, input: &Value) -> Result<ActionPlan, String>
Expand description

Execute an explicitly submitted editor script without installing or pinning it. The source is a function body with cad (the action context) and ui.notify. Only the resulting document commands survive; built-in features replay normally.