Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fetcher ¶
type Fetcher interface {
// Fetch retrieves the template and returns a path to the template directory
Fetch(source string) (string, error)
// Cleanup removes any temporary files created during fetch
Cleanup() error
}
Fetcher defines the interface for fetching templates from various sources
type GitFetcher ¶
type GitFetcher struct {
// contains filtered or unexported fields
}
GitFetcher fetches templates from Git repositories
func NewGitFetcher ¶
func NewGitFetcher() (*GitFetcher, error)
NewGitFetcher creates a new GitFetcher
func (*GitFetcher) Cleanup ¶
func (f *GitFetcher) Cleanup() error
Cleanup removes the temporary directory
type LocalFetcher ¶
type LocalFetcher struct {
}
LocalFetcher fetches templates from local filesystem paths
func NewLocalFetcher ¶
func NewLocalFetcher() *LocalFetcher
NewLocalFetcher creates a new LocalFetcher
func (*LocalFetcher) Cleanup ¶
func (f *LocalFetcher) Cleanup() error
Cleanup for LocalFetcher is a no-op since we don't create temporary files
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) GenerateFile ¶
func (m *Manager) GenerateFile(templateName, outputPath string, data TemplateData) error
type Renderer ¶
type Renderer struct {
}
Renderer handles the rendering of templates to a target directory
type TemplateData ¶
type TemplateData struct {
RepoName string
BinaryAlias string
BinaryAliasUpper string // Uppercase version for env vars (e.g., CX for cx)
Description string
GoVersion string
CoreVersion string
TendVersion string
ModulePath string // Full module path (e.g., github.com/grovetools/repo-name)
IsPublic bool
}
Click to show internal directories.
Click to hide internal directories.