prompt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDirectory

func CreateTempDirectory() (string, error)

func EstimateTokens

func EstimateTokens(output string) int64

func FindSingleSubdir

func FindSingleSubdir(dirPath string) (string, error)

func OutputGitRepo

func OutputGitRepo(repo *GitRepo) (string, error)

func SaveTextAsOneFile

func SaveTextAsOneFile(path, text string) error

func SaveTextAsParts

func SaveTextAsParts(path, text string) error

func UnzipFile

func UnzipFile(zipPath, destDir string) error

Types

type GitFile

type GitFile struct {
	Path     string `json:"path"`
	Tokens   int64  `json:"tokens"`
	Contents string `json:"contents"`
}

type GitRepo

type GitRepo struct {
	TotalTokens int64     `json:"total_tokens"`
	Files       []GitFile `json:"files"`
	FileCount   int       `json:"file_count"`
}

func ProcessGitRepo

func ProcessGitRepo(repoPath string) (*GitRepo, error)

Jump to

Keyboard shortcuts

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