Documentation
¶
Overview ¶
Package templates manages reusable Codog artifact and prompt templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("template not found")
Functions ¶
This section is empty.
Types ¶
type DiscoveryRoot ¶
type DiscoveryRoot struct {
Source string `json:"source"`
Label string `json:"label"`
Path string `json:"path"`
Exists bool `json:"exists"`
}
func Sources ¶
func Sources(configHome, workspace string) []DiscoveryRoot
type InstallReport ¶
type Rendered ¶
type SourceNotFoundError ¶
func (SourceNotFoundError) Error ¶
func (e SourceNotFoundError) Error() string
func (SourceNotFoundError) Unwrap ¶
func (e SourceNotFoundError) Unwrap() error
type Template ¶
type Template struct {
Name string `json:"name"`
Path string `json:"path"`
Source string `json:"source"`
Preview string `json:"preview"`
Body string `json:"body,omitempty"`
Active bool `json:"active"`
ShadowedBy string `json:"shadowed_by,omitempty"`
ShadowedByPath string `json:"shadowed_by_path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.