Merge pull request #80 from mf4633/feature/plugin-host

Add plugin host (Phase 1)
This commit is contained in:
Hakan Seven authored and GitHub committed 2026-06-10 00:37:37 +03:00
commit 6a70e99dd5
38 files changed
+1264 -20

No files matched your search

+17
View File
@@ -1,5 +1,6 @@
mod cmd_result;
mod commands;
pub mod plugin_host;
mod document;
mod expr_eval;
mod helpers;
@@ -1493,6 +1494,22 @@ impl OpenCADStudio {
app
}
#[cfg(test)]
pub(crate) fn new_for_test() -> Self {
Self::new()
}
#[cfg(test)]
pub(crate) fn command_history_info(&self) -> Vec<String> {
use crate::ui::command_line::EntryKind;
self.command_line
.history
.iter()
.filter(|e| e.kind == EntryKind::Info)
.map(|e| e.text.clone())
.collect()
}
/// Boot function for `iced::daemon`: returns initial state plus a task that
/// opens the primary application window.
fn boot() -> (Self, Task<Message>) {