Skip to content

feat: 커스텀 출력 템플릿 지원 (--template) #262

@TransparentDeveloper

Description

@TransparentDeveloper

개요

Go text/template 문법 기반 커스텀 템플릿으로 출력 포맷을 자유롭게 정의할 수 있도록 합니다.

배경

  • code2prompt는 Handlebars 템플릿, repomix는 --instruction-file-path로 커스터마이징 지원
  • Brf.it의 정밀한 Tree-sitter 추출 + 커스텀 템플릿 조합은 강력한 차별점

사용 예시

brfit --template ./my-template.tmpl ./src

템플릿 변수

type TemplateData struct {
    Version    string
    Path       string
    Files      []FileResult
    TokenCount int
    CallGraph  string
}

기본 동작

  • 기존 XML/MD/JSON 포맷은 내장 템플릿으로 유지
  • --template은 기존 포맷을 override

제안: PO

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestversion:minorNew feature - minor version bump

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions