processor

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetadataSummary

func GetMetadataSummary(config Config, result *ProcessResult, infoOnly bool) (string, error)

GetMetadataSummary returns a summary of project metadata and analysis If infoOnly is true, returns a rich summary with all details Otherwise returns a minimal summary with basic project info

func ParseCommaSeparated

func ParseCommaSeparated(input string) []string

func Run

func Run(dirPath string, extension string, exclude string, noCopy bool, infoOnly bool, verbose bool, outputFormat string, outFile string, debug bool, gitignore bool, useDefaultRules bool) error

Run executes the promptext tool with the given configuration

Types

type Config

type Config struct {
	DirPath    string
	Extensions []string
	Excludes   []string
	GitIgnore  bool
	Filter     *filter.Filter
}

type ProcessResult

type ProcessResult struct {
	ProjectOutput    *format.ProjectOutput
	DisplayContent   string
	ClipboardContent string
	TokenCount       int
	ProjectInfo      *info.ProjectInfo
}

ProcessResult contains both display and clipboard content

func ProcessDirectory

func ProcessDirectory(config Config, verbose bool) (*ProcessResult, error)

Jump to

Keyboard shortcuts

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