Skip to content

hocop/rcontext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rcontext

A CLI tool to merge a codebase into a single context file.

Usage

Context merging

Merges all codebase into a single markdown file with file structure and contents.

$ rcontext
Context saved to my_context.md

Tip

Now you can safely upload all your company's codebase into stackoverflow chatgpt!

List specific files and/or directories:

rcontext src/ tests/ README.md

Filter by extensions:

rcontext --exts rs,toml

Print to stdout instead of my_context.md.

rcontext --stdout

Line count

Counts non-blank lines of code, grouped by language (file extension).

$ rcontext --lc
md files: 29 lines
rs files: 206 lines
toml files: 12 lines

$ rcontext --lc --exts rs,toml
rs files: 206 lines
toml files: 12 lines

Options

Flag Description
--exts Filter by file extensions (comma-separated, e.g. rs,py)
--lc Count lines instead of generating context
--stdout Print context to stdout
--output Output file for context mode (default: context.md)

Installation

cargo install --git https://github.com/hocop/rcontext

Features

  • Respects .gitignore
  • Blazing fast

About

CLI tool to merge a codebase into a single file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages