Documentation
¶
Overview ¶
Package loader provides on-demand access to Copilot custom instruction files from local directories and GitHub repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
type Instruction struct {
Source string
Path string
Content string
URI string
ApplyTo []string // VS Code glob patterns; empty = applies everywhere
}
Instruction represents a single instruction file.
func FilterByFilePath ¶ added in v1.1.0
func FilterByFilePath(instructions []Instruction, filePath string) []Instruction
FilterByFilePath returns instructions applicable to the given file path. Instructions with an empty ApplyTo are always included (global rules). Reproducible: the order of returned instructions is stable (same as List order). If filePath is empty, all instructions are returned unchanged.
Click to show internal directories.
Click to hide internal directories.