combine_code 0.1.0

CLI tool to merge source files by extension while respecting .gitignore rules
combine_code-0.1.0 is not a library.

combine_code

combine_code is a command-line tool that merges source files into a single output file, with support for:

  • Extension filtering (--exts)
  • Respecting .gitignore rules
  • Optional recursive traversal
  • Ignoring specific directory names (--ignore-dirs)

Installation

cargo install combine_code

Usage

combine_code [PATH] --exts rs,py [OPTIONS]

Examples

Merge Rust files in the current directory:

combine_code . --exts rs

Merge recursively and skip target and node_modules:

combine_code . --exts rs,js --recursive --ignore-dirs target,node_modules --output merged.txt

Output format

The generated output includes a file header before each merged file and a summary section at the end with total files and lines combined.

License

Licensed under the MIT License. See LICENSE.