From 9b395ddaea827e02e750803054393ea61fe4ef84 Mon Sep 17 00:00:00 2001 From: Addison Date: Thu, 18 Sep 2025 16:20:45 -0400 Subject: [PATCH 1/3] fix: display message when there are no tasks --- cmd/list.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/list.go b/cmd/list.go index aabf887..8234273 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -34,6 +34,11 @@ 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 { From e8b955983ec918200f6d02e54790307c00b41b88 Mon Sep 17 00:00:00 2001 From: Addison Date: Thu, 18 Sep 2025 16:24:48 -0400 Subject: [PATCH 2/3] fix: incorrect error message --- cmd/list.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/list.go b/cmd/list.go index 8234273..c6fe22b 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -42,7 +42,8 @@ If a task name is provided, it shows only that specific task.`, 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) From 7306395079179f467a1c58d7227892261ca11c58 Mon Sep 17 00:00:00 2001 From: Addison Date: Thu, 18 Sep 2025 16:31:08 -0400 Subject: [PATCH 3/3] feat: add quotes to message --- cmd/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/list.go b/cmd/list.go index c6fe22b..f37dc69 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -42,7 +42,7 @@ If a task name is provided, it shows only that specific task.`, filteredTasks := filterTasks(tasks, args) if len(filteredTasks) == 0 { - fmt.Printf("no tasks found matching %s\n", args[0]) + fmt.Printf("no tasks found matching \"%s\"\n", args[0]) return nil }