cli task formatting
This commit is contained in:
parent
151841eca5
commit
300800a894
|
@ -28,10 +28,11 @@ func FormatTask(t *task.LocalTask) string {
|
||||||
output := fmt.Sprintf(`folder: %s
|
output := fmt.Sprintf(`folder: %s
|
||||||
action: %s
|
action: %s
|
||||||
project: %s
|
project: %s
|
||||||
due: %s
|
`, t.Folder, t.Action, t.Project)
|
||||||
`, t.Folder, t.Action, t.Project, t.Due.String())
|
|
||||||
if t.IsRecurrer() {
|
if t.IsRecurrer() {
|
||||||
output += fmt.Sprintf("recur: %s\n", t.Recur.String())
|
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)
|
return fmt.Sprintf("\n%s\n", output)
|
||||||
|
|
Loading…
Reference in New Issue