diff --git a/dist/plan b/dist/plan index d7a0848..8c88a59 100755 Binary files a/dist/plan and b/dist/plan differ diff --git a/plan/command/delete.go b/plan/command/delete.go index f6ff2aa..742b49d 100644 --- a/plan/command/delete.go +++ b/plan/command/delete.go @@ -88,5 +88,5 @@ func (del Delete) Do(deps Dependencies) (CommandResult, error) { type DeleteResult struct{} func (dr DeleteResult) Render() string { - return "task deleted" + return "task removed" } diff --git a/plan/command/list.go b/plan/command/list.go index bb3e05d..b462287 100644 --- a/plan/command/list.go +++ b/plan/command/list.go @@ -137,6 +137,10 @@ type ListResult struct { } func (lr ListResult) Render() string { + if len(lr.Tasks) == 0 { + return "\nno tasks to display\n" + } + sort.Slice(lr.Tasks, func(i, j int) bool { if lr.Tasks[i].Task.Date.After(lr.Tasks[j].Task.Date) { return false