Documentation
¶
Overview ¶
Package renderer generates interactive HTML from processed entries.
Index ¶
- func ConvertANSIToHTML(input string) string
- func ExecuteTemplate(tmpl *template.Template, wr io.Writer, data interface{}) error
- func GenerateHTML(entries []*models.ProcessedEntry, outputFile string, debugMode bool) error
- func LoadTemplates(funcMap template.FuncMap) (*template.Template, error)
- type BashResultFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertANSIToHTML ¶
ConvertANSIToHTML converts ANSI escape sequences to styled HTML.
func ExecuteTemplate ¶
ExecuteTemplate renders the base template with provided data.
func GenerateHTML ¶
func GenerateHTML(entries []*models.ProcessedEntry, outputFile string, debugMode bool) error
GenerateHTML renders processed entries to an HTML file.
Types ¶
type BashResultFormatter ¶
type BashResultFormatter struct{}
BashResultFormatter formats Bash command results for display.
func NewBashResultFormatter ¶
func NewBashResultFormatter() *BashResultFormatter
NewBashResultFormatter creates a new bash result formatter
func (*BashResultFormatter) Format ¶
func (f *BashResultFormatter) Format(toolCall interface{}) template.HTML
Format formats a bash tool call result into HTML
Click to show internal directories.
Click to hide internal directories.