2026-06-17 11:31:05 +03:00
|
|
|
use crate::plugin::host::{BuiltinPlugin, HostApi};
|
2026-06-09 13:41:21 -04:00
|
|
|
use crate::plugin::manifest::PluginManifest;
|
|
|
|
|
|
|
|
|
|
use super::dispatch;
|
|
|
|
|
use super::manifest;
|
|
|
|
|
|
|
|
|
|
pub struct MyPlugin;
|
|
|
|
|
|
|
|
|
|
impl BuiltinPlugin for MyPlugin {
|
|
|
|
|
fn manifest(&self) -> &'static PluginManifest {
|
|
|
|
|
&manifest::MANIFEST
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn ribbon(&self) -> Box<dyn crate::modules::CadModule> {
|
|
|
|
|
Box::new(super::MyPluginModule)
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-17 11:31:05 +03:00
|
|
|
fn dispatch(&self, host: &mut dyn HostApi, cmd: &str) -> bool {
|
2026-06-09 13:41:21 -04:00
|
|
|
dispatch::handle(host, cmd)
|
|
|
|
|
}
|
|
|
|
|
}
|