Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ dumpcode Public

A CLI utility to dump a directory's codebase into clipboard / text file using an LLM-friendly format.

License

Notifications You must be signed in to change notification settings

MKJM2/dumpcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

dumpcode

dumpcode is a simple utility that outputs your project's files in an LLM-friendly format. It generates a tree view of your project structure and then includes the file contents with syntax highlighting. The output can be routed to your clipboard or to stdout.

features

  • generates a tree view of your project directory
  • dumps file contents with language detection
  • supports excluding specified directories
  • optionally copies output to clipboard
  • uses rayon for fast, parallel file processing

usage

run dump from the terminal:

cargo run -- [directory]

if no directory is provided, dump uses the current directory.

command line options:

  • -c, --clipboard: copy output to clipboard instead of stdout
  • -e, --extensions: comma-separated file extensions to include
  • -s, --max-size: maximum file size in kb to include (default: 100)
  • -x, --exclude: comma-separated directories to exclude
  • --max-files: maximum number of files to include (default: 1000)

installation

  1. clone the repo.
  2. run cargo build --release
  3. run the binary from ./target/release/dump

note

dump was built with performance in mind and leverages rayon for parallel file scanning.

About

A CLI utility to dump a directory's codebase into clipboard / text file using an LLM-friendly format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /