Documentation
¶
Overview ¶
Package file provides file ops tool calls
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandFilePattern ¶
ExpandFilePattern 扩展文件模式
func ParseLineRange ¶
ParseLineRange parse line range
func ResolvePath ¶
ResolvePath 解析文件路径:如果是相对路径,则拼接项目根目录;否则直接使用
Types ¶
type GrepMatch ¶
type GrepMatch struct {
Content string `json:"content,omitzero"`
// Path is the file path where the match was found.
Path string `json:"path,omitzero"`
// Line is the 1-based line number of the match.
Line int `json:"line,omitzero"`
}
GrepMatch represents a single pattern match result.
Source Files
¶
- file.go
- file_pattern_expand.go
- file_read.go
- file_read_with_line_range.go
- file_ripgrep.go
- file_search.go
- file_search_with_pattern.go
- file_write.go
- file_write_with_line_range.go
Click to show internal directories.
Click to hide internal directories.