Skip to content

Instantly share code, notes, and snippets.

@Aayush9029
Last active December 25, 2024 06:13
Show Gist options
  • Select an option

  • Save Aayush9029/e55c38f6fad238ebb4e9094b700b1e7e to your computer and use it in GitHub Desktop.

Select an option

Save Aayush9029/e55c38f6fad238ebb4e9094b700b1e7e to your computer and use it in GitHub Desktop.
Context generator zsh code
We couldn’t find any files to show.
@Aayush9029
Copy link
Author

context_gen

A simple utility that recursively concatenates files of a specified type into a single output file. Useful for preparing context files for Large Language Models (LLMs).

Usage

context_gen <file_extension> <output_file>

Examples

Concatenate all Swift files:

context_gen swift all.swift

Concatenate all Python files:

context_gen py python-files.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment