Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedLoader ¶
type EmbeddedLoader struct {
// contains filtered or unexported fields
}
EmbeddedLoader loads templates from an embedded filesystem
func NewEmbeddedLoader ¶
func NewEmbeddedLoader(fs embed.FS, prefix string) *EmbeddedLoader
NewEmbeddedLoader creates an EmbeddedLoader with the given embedded filesystem. The prefix is the path within the embed.FS where templates are located (e.g., "templates")
func (*EmbeddedLoader) Load ¶
func (e *EmbeddedLoader) Load() (fs.FS, error)
Load returns the embedded filesystem
func (*EmbeddedLoader) Source ¶
func (e *EmbeddedLoader) Source() string
Source returns a description of the template source
type GitHubLoader ¶
type GitHubLoader struct {
// contains filtered or unexported fields
}
GitHubLoader loads templates from a GitHub release
func NewGitHubLoader ¶
func NewGitHubLoader(owner, repo, version string) *GitHubLoader
NewGitHubLoader creates a GitHubLoader for the specified repository and version. If version is empty, it will fetch from the latest release.
func (*GitHubLoader) Load ¶
func (g *GitHubLoader) Load() (fs.FS, error)
Load fetches the release tarball from GitHub and extracts the .claude directory
func (*GitHubLoader) Source ¶
func (g *GitHubLoader) Source() string
Source returns a description of the template source
type LoadResult ¶
LoadResult contains the loaded filesystem and metadata about the source
type Loader ¶
type Loader interface {
// Load returns a filesystem containing the .claude directory structure
Load() (fs.FS, error)
// Source returns a human-readable description of where templates came from
Source() string
}
Loader defines the interface for loading template files
type LocalLoader ¶
type LocalLoader struct {
// contains filtered or unexported fields
}
LocalLoader loads templates from a local filesystem path
func NewLocalLoader ¶
func NewLocalLoader(path string) *LocalLoader
NewLocalLoader creates a LocalLoader for the given path. The path should contain .claude/ and specs/ subdirectories.
func (*LocalLoader) Load ¶
func (l *LocalLoader) Load() (fs.FS, error)
Load validates the directory structure and returns the filesystem
func (*LocalLoader) Source ¶
func (l *LocalLoader) Source() string
Source returns a description of the template source