processor

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourcePath                     string
	GitRef                         string
	OutputFile                     string
	IncludeTree                    bool
	SkipAuxFiles                   bool
	UserExcludeDirs                []string
	UserExcludeExts                []string
	UserExcludeGlobs               []string
	MaxFileSize                    int64
	DefaultExcludeDirs             []string
	DefaultMediaExts               []string
	DefaultArchiveExts             []string
	DefaultExecExts                []string
	DefaultLockfilePatterns        []string
	DefaultMiscellaneousFileNames  []string
	DefaultMiscellaneousExtensions []string
	DefaultAuxExts                 []string
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Processor, error)

func (*Processor) GetFinalOutputFile

func (p *Processor) GetFinalOutputFile() string

func (*Processor) Process

func (p *Processor) Process() error

type TreeBuilder

type TreeBuilder struct {
	// contains filtered or unexported fields
}

func NewTreeBuilder

func NewTreeBuilder(
	basePath string,
	filter *filefilter.FileFilter,
	cache map[string]*gitignore.GitIgnore,
	compileFunc func(dirPath string) (*gitignore.GitIgnore, error),
) *TreeBuilder

func (*TreeBuilder) BuildTreeString

func (tb *TreeBuilder) BuildTreeString() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL