table format

This commit is contained in:
Erik Winter 2021-08-20 11:02:30 +02:00
parent 1218e99450
commit 5b2e207e05
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package format
import (
"fmt"
"strings"
"git.ewintr.nl/gte/internal/task"
)
@ -17,7 +18,7 @@ func FormatTaskTable(tasks []*task.LocalTask) string {
var output string
for _, t := range tasks {
output += fmt.Sprintf("%d\t%s\t%s\n", t.LocalId, t.Due.String(), t.Action)
output += fmt.Sprintf("%d\t%s\t%s (%s, %s)\n", t.LocalId, t.Due.String(), t.Action, t.Project, strings.ToLower(t.Folder))
}
return output