Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ If a task name is provided, it shows only that specific task.`,
return fmt.Errorf("no tasks found: %w", err)
}

if len(tasks) == 0 {
fmt.Println("no tasks")
return nil
}

filteredTasks := filterTasks(tasks, args)

if len(filteredTasks) == 0 {
return fmt.Errorf("no tasks found matching: %w", err)
fmt.Printf("no tasks found matching \"%s\"\n", args[0])
return nil
}

displayTasksTable(filteredTasks)
Expand Down