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
@@ -27,7 +27,7 @@ func (f *Generator) Fake(path string) (string, error) {
f.loadShippedAt(segments)
n, pins, err := drawCallerPath(f.drawState, &f.root, segments)
if err != nil {
return "", fmt.Errorf("fejkdata: %s: %w", path, err)
return "", f.noDataNote(fmt.Errorf("fejkdata: %s: %w", path, err))
}
if _, ok := n.(*folder); ok {
return "", fmt.Errorf("fejkdata: %s names a folder, not a value", path)