forked from 1b-agent/opencadstudio-upstream
feat(plugin): AutoCAD-compatible PAUSE, ENTER keyword, and command streaming
This commit is contained in:
1 parent
fd2062bdec
commit
fbedb3736e
8 files changed
+250
-3
No files matched your search
@@ -758,6 +758,20 @@ impl HostApi for V4PluginHostApi {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn execute_command(&mut self, cmd: &str) -> bool {
|
||||
match self.request(PluginRequest::ExecuteCommand(cmd.to_string())) {
|
||||
Ok(PluginResponse::Bool(b)) => b,
|
||||
Ok(other) => {
|
||||
eprintln!("[plugin] unexpected ExecuteCommand response: {other:?}");
|
||||
false
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("[plugin] ExecuteCommand failed: {e}");
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in new issue
Block a user