@@ -15,12 +15,13 @@ func RenderTable(data map[string]string) error {
15
15
var TableData [][]string
16
16
for p , status := range data {
17
17
alias , err := db .GetRecord (p , pkg .ProjectAliasBucket )
18
+ lastEdited := pkg .GetLastModifiedTime (p )
18
19
if err == nil {
19
20
pname := fmt .Sprintf ("%s (%s)" , p , alias )
20
- row := []string {pkg .TitleCase (status ), pname } // Status | prjectName (alias)
21
+ row := []string {pkg .TitleCase (status ), pname , lastEdited } // Status | prjectName (alias)
21
22
TableData = append (TableData , row )
22
23
} else {
23
- row := []string {pkg .TitleCase (status ), p } // Status | prjectName
24
+ row := []string {pkg .TitleCase (status ), p , lastEdited } // Status | prjectName
24
25
TableData = append (TableData , row )
25
26
}
26
27
}
@@ -44,12 +45,12 @@ func RenderTable(data map[string]string) error {
44
45
"Aborted" : lipgloss .Color ("#FF875F" ),
45
46
"Default" : lipgloss .Color ("#929292" ),
46
47
}
47
- headers := []string {"Project Name" , "Status" }
48
+ headers := []string {"Project Name" , "Status" , "Last Edited" }
48
49
t := table .New ().
49
50
Border (lipgloss .NormalBorder ()).
50
51
BorderStyle (re .NewStyle ().Foreground (lipgloss .Color ("238" ))).
51
52
Headers (headers ... ).
52
- Width (80 ).
53
+ Width (100 ).
53
54
Rows (TableData ... ).
54
55
StyleFunc (func (row , col int ) lipgloss.Style {
55
56
if row == 0 {
0 commit comments