filesystem

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package filesystem holds shared request/result types used by file tools. It is not a swappable capability: tools implement their own ops surface and only import these DTOs for grep/find/list formatting. Gitignore helpers live in runtime/filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirEntry

type DirEntry struct {
	Name  string
	Path  string
	IsDir bool
}

type FindRequest

type FindRequest struct {
	Pattern    string
	Path       string
	MaxResults int
}

type FindResult

type FindResult struct {
	Paths     []string
	Truncated bool
	Text      string
	Hint      string
}

type GrepMatch

type GrepMatch struct {
	Path    string
	Line    int
	Content string
}

type GrepRequest

type GrepRequest struct {
	Pattern    string
	Path       string
	Glob       string
	IgnoreCase bool
	Literal    bool
	Context    int
	MaxMatches int
}

type GrepResult

type GrepResult struct {
	Matches   []GrepMatch
	Truncated bool
	Text      string
	Hint      string
}

Jump to

Keyboard shortcuts

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