Documentation
¶
Overview ¶
File tools that read, write, edit, glob and grep inside an optional root
Index ¶
- Constants
- func All(o Options) []tool.Tool
- func Edit(o Options) tool.Tool
- func Glob(o Options) tool.Tool
- func Grep(o Options) tool.Tool
- func Outline(o Options) tool.Tool
- func Read(o Options) tool.Tool
- func Write(o Options) tool.Tool
- type Change
- type FileHits
- type GlobData
- type GrepData
- type Hit
- type Match
- type Options
- type OutlineData
- type ReadData
- type ReadMany
Constants ¶
View Source
const ( ReadName = "Read" WriteName = "Write" EditName = "Edit" GlobName = "Glob" GrepName = "Grep" )
View Source
const OutlineName = "Outline"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrepData ¶
type GrepData struct {
Pattern string
Mode string
Files []FileHits
// Matches across every file in the requested mode
Total int
// Files skipped because they could not be read
Skipped int
// Files skipped because they were too large to match as a whole
Oversize int
}
Structured outcome of Grep
type Options ¶
type Options struct {
// Directory relative paths resolve against, the process working directory when empty
Dir string
}
Shared settings of every file tool
type OutlineData ¶
type OutlineData struct {
Path string
Files int
Symbols int
// Files passed over for having no rule or being binary
Skipped int
}
Structured outcome of Outline
Click to show internal directories.
Click to hide internal directories.