feat(times): Add repository column to times table (fix #19)
This commit is contained in:
parent
2528fbe9eb
commit
fa9318812d
6
times.go
6
times.go
@ -53,7 +53,8 @@ func times() {
|
|||||||
var total_time time.Duration
|
var total_time time.Duration
|
||||||
|
|
||||||
columns := []table.Column{
|
columns := []table.Column{
|
||||||
{Title: "Server", Width: 10},
|
{Title: "Server", Width: 15},
|
||||||
|
{Title: "Repository", Width: 15},
|
||||||
{Title: "User", Width: 8},
|
{Title: "User", Width: 8},
|
||||||
{Title: "Time", Width: 8},
|
{Title: "Time", Width: 8},
|
||||||
{Title: "Created at", Width: 11},
|
{Title: "Created at", Width: 11},
|
||||||
@ -66,6 +67,7 @@ func times() {
|
|||||||
}
|
}
|
||||||
rows = append(rows, table.Row{
|
rows = append(rows, table.Row{
|
||||||
t.server.servername,
|
t.server.servername,
|
||||||
|
t.Issue.Repository.Name,
|
||||||
t.UserName,
|
t.UserName,
|
||||||
dur.String(),
|
dur.String(),
|
||||||
t.Created.Format(time.DateOnly),
|
t.Created.Format(time.DateOnly),
|
||||||
@ -74,7 +76,7 @@ func times() {
|
|||||||
}
|
}
|
||||||
tv := timesviewer{
|
tv := timesviewer{
|
||||||
total_time: total_time,
|
total_time: total_time,
|
||||||
length: 50,
|
length: 70,
|
||||||
}
|
}
|
||||||
tab := table.New(
|
tab := table.New(
|
||||||
table.WithColumns(columns),
|
table.WithColumns(columns),
|
||||||
|
Loading…
Reference in New Issue
Block a user