summaryrefslogtreecommitdiff
path: root/internal/queue/queue.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-31 21:50:22 +0200
committerPaul Buetow <paul@buetow.org>2024-10-31 21:50:22 +0200
commite45b591404ebb36fa7d71510e99fdecf668a85e7 (patch)
tree9a0cd416adbc1ce02249b26e667d6c686f8933f3 /internal/queue/queue.go
parent38cff047850cd0d31d6ec23a9446a94855a93ba6 (diff)
t.Parallel() can actually slow down the testa then the tests are very short-running
Diffstat (limited to 'internal/queue/queue.go')
-rw-r--r--internal/queue/queue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go
index a9f9319..59882cc 100644
--- a/internal/queue/queue.go
+++ b/internal/queue/queue.go
@@ -33,8 +33,8 @@ func Run(args config.Args) error {
// Queue all *.txt into ./db/*.txt.STAMP.queued
func queueEntries(args config.Args) error {
+ // TODO: Use find(...), but refactor with variadic args
ch, err := oi.ReadDirCh(args.GosDir, func(file os.DirEntry) (string, bool) {
- // TODO: Make all of those loops return an entry.Entry
filePath := filepath.Join(args.GosDir, file.Name())
return filePath, slices.Contains(validExtensions, filepath.Ext(file.Name())) &&
file.Type().IsRegular()
@@ -53,7 +53,7 @@ func queueEntries(args config.Args) error {
if err != nil {
return err
}
- // TODO Refactor
+ // TODO Refactor this prompting mechanism plus possible choices for DRY
err = prompt.DoYouWantThis("Do you want to queue this content", content)
switch {
case errors.Is(err, prompt.ErrEditContent):