This commit is contained in:
Michael Quigley 2022-12-02 12:23:12 -05:00
parent dc24a0532b
commit d2cf19188a
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -45,14 +45,14 @@ func (cmd *adminListFrontendsCommand) run(_ *cobra.Command, args []string) {
fmt.Println() fmt.Println()
t := table.NewWriter() t := table.NewWriter()
t.SetOutputMirror(os.Stdout) t.SetOutputMirror(os.Stdout)
t.SetStyle(table.StyleColoredBright) t.SetStyle(table.StyleColoredDark)
t.AppendHeader(table.Row{"Token", "zId", "Url Template", "Public Name", "Created At", "Updated At"}) t.AppendHeader(table.Row{"Token", "zId", "Public Name", "Url Template", "Created At", "Updated At"})
for _, pfe := range resp.Payload { for _, pfe := range resp.Payload {
t.AppendRow(table.Row{ t.AppendRow(table.Row{
pfe.Token, pfe.Token,
pfe.ZID, pfe.ZID,
pfe.URLTemplate,
pfe.PublicName, pfe.PublicName,
pfe.URLTemplate,
time.UnixMilli(pfe.CreatedAt), time.UnixMilli(pfe.CreatedAt),
time.UnixMilli(pfe.UpdatedAt), time.UnixMilli(pfe.UpdatedAt),
}) })