Skip to content

Simple Tool that enambles you to get whole codebase as reference for chatbots like chatgpt etc. so you dont have to copy all your files and pass them to it

License

Notifications You must be signed in to change notification settings

T1G3R-DEV/CodebaseAsReference4Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CodebaseAsReference4Chatbot

Simple Tool that enambles you to get whole codebase as reference for chatbots like chatgpt etc. so you dont have to copy all your files and pass them to it

πŸ“‹ A fast, flexible Rust CLI to recursively list files and copy them to your clipboard (or save to a file). Supports file content copying, filtering, JSON output, .gitignore respect, and more.

πŸ”§ Features

  • βœ… Recursively list files and directories
  • πŸ“‹ Copy file names and contents to clipboard
  • πŸ“ Optional output to file
  • 🎯 Filter by file extensions
  • 🧾 JSON output support
  • 🚫 Skip binary files
  • πŸ›‘ Ignore files via .gitignore (by default)
  • ⚑ CLI powered by clap

πŸŽ› Options

Option Description
-d, --dir <DIR> Start directory (default: current directory)
-o, --output <FILE> Save output to file instead of clipboard
-v, --verbose Verbosely list all file paths
--no-content Do not include file contents in output
--no-gitignore Disable .gitignore filtering
(--filter <EXT>) Not working rn Only include files with given extension(s) (e.g. rs, md)
--json Output data as JSON
-h, --help Print help information
--version Show version info

πŸ“‹ Output Format Default:

file1.txt
dir/file2.rs
...

=== Contents ===

--- file1.txt ---
(content of file1)

--- dir/file2.rs ---
(content of file2)

Json:

{
  "files": [
    {
      "path": "file1.txt",
      "content": "..."
    },
    {
      "path": "dir/file2.rs",
      "content": "..."
    }
  ]
}

Build: -- test:

cargo run

Install:

cargo install --path .

About

Simple Tool that enambles you to get whole codebase as reference for chatbots like chatgpt etc. so you dont have to copy all your files and pass them to it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages