aboutsummaryrefslogtreecommitdiff
path: root/cmd/x
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-24 17:30:54 -0400
committerXe Iaso <me@xeiaso.net>2024-05-24 17:30:54 -0400
commit5d89c43934344619bed52563f053c6cb42cf9441 (patch)
tree28bc3e804923605bb692516dbaf22ee6e68b85c3 /cmd/x
parent326a5c363c08fe38a4110653ef6d7b2828590d17 (diff)
downloadx-5d89c43934344619bed52563f053c6cb42cf9441.tar.xz
x-5d89c43934344619bed52563f053c6cb42cf9441.zip
cmd/x: add event ID to list-events
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/x')
-rw-r--r--cmd/x/mi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/x/mi.go b/cmd/x/mi.go
index 46a8447..24bd2b4 100644
--- a/cmd/x/mi.go
+++ b/cmd/x/mi.go
@@ -134,9 +134,9 @@ func (le *miListEvents) Execute(ctx context.Context, f *flag.FlagSet, _ ...inter
return subcommands.ExitFailure
}
- tbl := table.New("Name", "Start Date", "End Date", "Location")
+ tbl := table.New("ID", "Name", "Start Date", "End Date", "Location")
for _, ev := range resp.Events {
- tbl.AddRow(ev.Name, ev.StartDate.AsTime().Format("2006-01-02"), ev.EndDate.AsTime().Format("2006-01-02"), ev.Location)
+ tbl.AddRow(ev.Id, ev.Name, ev.StartDate.AsTime().Format("2006-01-02"), ev.EndDate.AsTime().Format("2006-01-02"), ev.Location)
}
tbl.Print()