depbank 0.2.4

A Rust CLI tool for generating AI-friendly code banks from dependencies. Automatically parses Cargo.toml files, resolves versions, and generates searchable documentation while calculating token counts.
Documentation
use anyhow::Result;
use clap::Parser;

mod cli;
mod utils;

use cli::{Cli, Commands};
use utils::{generate_command, list_command, tokens_command};

fn main() -> Result<()> {
    let cli = Cli::parse();

    match &cli.command {
        Commands::Generate {
            path,
            output,
            dry_run,
        } => generate_command(path, output, *dry_run),
        Commands::Tokens { path, extension } => tokens_command(path, extension.as_deref()),
        Commands::List { path, detailed } => list_command(path, *detailed),
    }
}