snippy 0.2.2

A command-line tool for that makes using LLMs for code generation a breeze
Documentation
use crate::errors::ClipboardError;
pub mod markdown;

#[derive(Debug, Clone)]
pub struct ParsedBlock {
    pub filename: String,
    pub content: String,
    pub block_type: BlockType,
}

#[derive(Debug, PartialEq, Clone)]
pub enum BlockType {
    FullContent,
    UnifiedDiff,
    SearchReplaceBlock,
}

pub trait Extractor: Send + Sync {
    fn extract(&self, content: &str) -> Result<Vec<ParsedBlock>, ClipboardError>;
}