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
|
||||
|
||||
columns := []table.Column{
|
||||
{Title: "Server", Width: 10},
|
||||
{Title: "Server", Width: 15},
|
||||
{Title: "Repository", Width: 15},
|
||||
{Title: "User", Width: 8},
|
||||
{Title: "Time", Width: 8},
|
||||
{Title: "Created at", Width: 11},
|
||||
@ -66,6 +67,7 @@ func times() {
|
||||
}
|
||||
rows = append(rows, table.Row{
|
||||
t.server.servername,
|
||||
t.Issue.Repository.Name,
|
||||
t.UserName,
|
||||
dur.String(),
|
||||
t.Created.Format(time.DateOnly),
|
||||
@ -74,7 +76,7 @@ func times() {
|
||||
}
|
||||
tv := timesviewer{
|
||||
total_time: total_time,
|
||||
length: 50,
|
||||
length: 70,
|
||||
}
|
||||
tab := table.New(
|
||||
table.WithColumns(columns),
|
||||
|
Loading…
Reference in New Issue
Block a user