Print the CSV header at -n 0, refuse --separator with a record format, refuse a date field in time(), read a bare number template as a format string, and say when no data is loaded

This commit is contained in:
2026-10-08 12:24:47 +02:00
committed by Lillem4n
parent 332b99ad88
commit 357a2a276d
9 changed files with 106 additions and 50 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func (f *Generator) FakeRecord(path string) (*Record, error) {
f.loadShippedAt(segments)
_, n, tail, err := resolveCategory(f.root.children, segments)
if err != nil {
return nil, fmt.Errorf("fejkdata: %s: %w", path, err)
return nil, f.noDataNote(fmt.Errorf("fejkdata: %s: %w", path, err))
}
var frames frameStack
env := renderEnv{frames: &frames}