Crate gitprint

Source
Expand description

§gitprint

Convert git repositories into syntax-highlighted, printer-friendly PDFs.

The main entry point is run(), which executes the full pipeline: git repository inspection, file filtering, syntax highlighting, and PDF generation.

Modules§

cli
Command-line argument parsing via Clap.
defaults
Default glob patterns excluded from PDF output.
filter
Glob-based file filtering and binary/minified detection.
git
Git operations via subprocess.
github
GitHub REST API v3 client. GitHub REST API v3 client.
highlight
Syntax highlighting via syntect.
pdf
PDF generation via printpdf.
preview
Terminal preview renderer. Terminal preview mode — renders repository or user data to stdout instead of generating a PDF.
types
Shared data types.
user_report
GitHub user activity report pipeline. User report pipeline: fetch GitHub data in parallel, then render PDF.

Functions§

run
Runs the full gitprint pipeline and writes a PDF to config.output_path.