add tui features
Some checks failed
CI / test-build (push) Failing after 2m26s

This commit is contained in:
2025-12-15 01:08:17 +07:00
parent 96a6b5a4cf
commit 507961716e
12 changed files with 2793 additions and 8 deletions

View File

@@ -199,8 +199,10 @@ func parseTemplates(dir string) (*template.Template, error) {
if err != nil {
return nil, err
}
// Allow empty templates for testing
if len(files) == 0 {
return nil, fmt.Errorf("no templates found at %s", pattern)
// Return empty template instead of error for testing
return template.New("root"), nil
}
funcs := template.FuncMap{