grepdown 0.1.0

CLI for grepdown: index a folder of Markdown files and search, traverse, and lint the knowledge base
1
2
3
4
5
6
7
8
9
10
use anyhow::{Context, Result};

pub fn read(path: &str) -> Result<()> {
    let project = grepdown_lib::MDDBProject::open(".").context("Failed to open project")?;
    let doc = project
        .read_document(path)
        .context("Failed to read document")?;
    print!("{}", doc.content);
    Ok(())
}