tokmd 1.11.0

Tokei-backed repo inventory receipts (Markdown/TSV/JSONL/CSV) for PRs, CI, and LLM workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Handler for the `tokmd tools` command.

use crate::cli;
use crate::tool_schema::{build_tool_schema, render_output};
use anyhow::Result;
use clap::CommandFactory;

/// Handle the tools command.
pub(crate) fn handle(args: cli::ToolsArgs) -> Result<()> {
    let cmd = cli::Cli::command();
    let schema = build_tool_schema(&cmd);
    let output = render_output(&schema, args.format, args.pretty)?;
    println!("{}", output);
    Ok(())
}