Expand description
Command-line interface definition using clap.
This module defines:
Args- CLI argument structure (for use with clap)Source- Supported chat sourcesOutputFormat- Output format options
§Using Source and OutputFormat in Libraries
These types are designed to be usable outside of CLI context:
use chatpack::cli::{Source, OutputFormat};
use chatpack::parsers::create_parser;
// Use Source to create a parser
let parser = create_parser(Source::Telegram);
// OutputFormat can be converted to/from strings
let format = OutputFormat::Csv;
println!("Format: {}", format); // "CSV"Structs§
- Args
- Compress chat exports from Telegram, WhatsApp, and Instagram into token-efficient formats for LLMs.
Enums§
- Output
Format - Output format options.
- Source
- Supported chat sources.