From 300800a894f73cc19d678856c5cc10d9b99cae08 Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Mon, 17 Oct 2022 10:28:59 +0200 Subject: [PATCH] cli task formatting --- cmd/cli/format/format.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/cli/format/format.go b/cmd/cli/format/format.go index a2c96a4..b72be6f 100644 --- a/cmd/cli/format/format.go +++ b/cmd/cli/format/format.go @@ -28,10 +28,11 @@ func FormatTask(t *task.LocalTask) string { output := fmt.Sprintf(`folder: %s action: %s project: %s -due: %s -`, t.Folder, t.Action, t.Project, t.Due.String()) +`, t.Folder, t.Action, t.Project) if t.IsRecurrer() { output += fmt.Sprintf("recur: %s\n", t.Recur.String()) + } else { + output += fmt.Sprintf("due: %s", t.Due.String()) } return fmt.Sprintf("\n%s\n", output)