#![allow(dead_code)]
use std::path::Path;
#[derive(Debug, Clone, Default)]
pub struct WalkPluginMarkdownOpts {
pub stop_at_skill_dir: Option<bool>,
pub log_label: Option<String>,
}
#[derive(Debug)]
pub struct WalkPluginMarkdownError {
pub message: String,
pub path: String,
}
impl std::fmt::Display for WalkPluginMarkdownError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"walk_plugin_markdown error at {}: {}",
self.path, self.message
)
}
}
impl std::error::Error for WalkPluginMarkdownError {}
pub async fn walk_plugin_markdown<F, Fut>(
_root_dir: &Path,
_on_file: F,
_opts: WalkPluginMarkdownOpts,
) -> std::io::Result<()>
where
F: Fn(String, Vec<String>) -> Fut + Send + Sync + Clone,
Fut: std::future::Future<Output = ()> + Send,
{
Ok(())
}