core

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(opt *commandline.Option) error

func ApplySort

func ApplySort(files []os.DirEntry)

func CanBoaded

func CanBoaded(opt *commandline.Option, path string) bool

func Compless added in v1.1.2

func Compless(path string, format model.OutputFormat) error

func GenerateTreeJSONString added in v0.4.0

func GenerateTreeJSONString(rootPath string, allowedFileMap map[string]bool, opt *commandline.Option) (string, map[string]bool, error)

func GenerateTreeString

func GenerateTreeString(path string, indent string, allowedFileListMap map[string]bool, opt *commandline.Option) (string, map[string]bool, error)

func IsHiddenFile

func IsHiddenFile(name string) bool

func IsUnderGitDir

func IsUnderGitDir(path string) bool

func PrependDescriptionWithFormat

func PrependDescriptionWithFormat(projectName, root string, format model.OutputFormat) string

PrependDescriptionWithFormat prepends a descriptive header suitable for AI processing in either plain text or markdown format.

func WriteAllFiles added in v0.2.0

func WriteAllFiles(treeStr string, root string, outputPath string, allowedFileListMap map[string]bool, opt *commandline.Option) error

func WriteAllFilesAsArklite added in v1.1.2

func WriteAllFilesAsArklite(treeStr, root, outputPath string, allowedFileListMap map[string]bool, opt *commandline.Option) error

func WriteAllFilesAsXML added in v0.2.0

func WriteAllFilesAsXML(treeStr string, root string, outputPath string, allowedFileListMap map[string]bool, opt *commandline.Option) error

Types

type TreeEntry added in v0.4.0

type TreeEntry struct {
	Name     string       `json:"name"`
	Type     string       `json:"type"` // "file" or "directory"
	Children []*TreeEntry `json:"children,omitempty"`
}

Jump to

Keyboard shortcuts

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