Skip to content

koakuma-chan/kek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kek

A repository serializer inspired by yek.

Features

  • Outputs pseudo-XML.
  • Uses sendfile for blazingly fast performance.
  • Categorises files as docs, src or other (helps the model).
  • Respects .gitignore and .kekignore

Installation

cargo install --git https://github.com/koakuma-chan/kek

Usage

Serialize the repository and write to the clipboard

kek | clip.exe

Add a task prompt

kek "Optimize code." | clip.exe # Adds <task>Optimize code.</task> at the end of the output.

Debug which files are included

kek | grep -A2 "<path>"

Configuration

Configuration is managed via kek.toml. Alternatively, the path can be specified using the KEK_CONFIG environment variable.

# Example kek.toml (these aren't the defaults)

scan = [
    "../migrations", # include shared SQL migrations
    "." # include this project's files
]

[category]
# Globs for the 'docs' category.
# These are matched case-insensitively against relative file paths.
docs = [
    "*.md",
    "docs/**/*.txt",
    "LICENSE"
]

# Globs for the 'src' category.
# Matched case-insensitively.
src = [
    "*.rs",
    "src/**/*.js",
    "Makefile",
    "**/.*.conf" # Example to match hidden .conf files
]

About

A repository serializer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages