From 10eb852c01e84619340290d1cbaba0b116dd3267 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 27 Oct 2024 18:19:13 +0200 Subject: add now tag --- internal/queue/queue.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/queue/queue.go') diff --git a/internal/queue/queue.go b/internal/queue/queue.go index e396761..229c3c5 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -42,6 +42,7 @@ func queueEntries(args config.Args) error { } for filePath := range ch { + // TODO: Document .ask. in README.md if strings.Contains(filepath.Base(filePath), ".ask.") { bytes, err := os.ReadFile(filePath) if err != nil { @@ -61,8 +62,7 @@ func queueEntries(args config.Args) error { return err } } - destPath := fmt.Sprintf("%s/db/%s.%s.queued", args.GosDir, - filepath.Base(filePath), timestamp.Now()) + destPath := fmt.Sprintf("%s/db/%s.%s.queued", args.GosDir, filepath.Base(filePath), timestamp.Now()) if args.DryRun { log.Println("Not queueing entry", filePath, "to", destPath, "as dry-run mode enabled") continue @@ -107,8 +107,7 @@ func queuePlatforms(args config.Args) error { } // Keep queued items in trash for a while. - trashPath := filepath.Join(trashDir, - strings.TrimSuffix(filepath.Base(filePath), ".queued")+".trash") + trashPath := filepath.Join(trashDir, strings.TrimSuffix(filepath.Base(filePath), ".queued")+".trash") log.Printf("Trashing %s -> %s", filePath, trashPath) if err := oi.EnsureParentDir(trashPath); err != nil { return err -- cgit v1.2.3