mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
31 lines
1.0 KiB
Rust
31 lines
1.0 KiB
Rust
use crate::error::AppError;
|
|
use crate::plugin_manager::PluginMetadata;
|
|
|
|
#[tauri::command]
|
|
pub fn list_plugins() -> Vec<PluginMetadata> {
|
|
// This would be connected to the app state in a full implementation
|
|
// For now, return the built-in plugins
|
|
vec![
|
|
PluginMetadata {
|
|
name: "writing-studio".to_string(),
|
|
version: "1.0.0".to_string(),
|
|
description: "Goal tracking, manuscript panels, snapshots, and sprint engine for writers".to_string(),
|
|
author: "ConcreteInfo".to_string(),
|
|
builtin: true,
|
|
}
|
|
]
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub fn get_plugin(name: String) -> Option<PluginMetadata> {
|
|
match name.as_str() {
|
|
"writing-studio" => Some(PluginMetadata {
|
|
name: "writing-studio".to_string(),
|
|
version: "1.0.0".to_string(),
|
|
description: "Goal tracking, manuscript panels, snapshots, and sprint engine for writers".to_string(),
|
|
author: "ConcreteInfo".to_string(),
|
|
builtin: true,
|
|
}),
|
|
_ => None,
|
|
}
|
|
} |