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 // origin identifier (directory basename or owner/repo)
Path string // relative path within the source
Content string // raw markdown content
URI string // MCP resource URI
}
Instruction represents a single instruction file.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader provides on-demand access to instruction files.
func (*Loader) ForceSync ¶
func (l *Loader) ForceSync()
ForceSync triggers an immediate sync of all remote repos.
func (*Loader) Get ¶
func (l *Loader) Get(uri string) (Instruction, bool)
Get returns a single instruction by URI.
func (*Loader) List ¶
func (l *Loader) List() []Instruction
List returns all instructions. Local dirs are read from disk; repos from cache. When no dirs are configured, the current working directory is used as default so the server works out-of-the-box when run from a repository root.
Click to show internal directories.
Click to hide internal directories.