mirror of
https://github.com/openziti/zrok.git
synced 2025-01-03 04:29:19 +01:00
lint (#129)
This commit is contained in:
parent
dc24a0532b
commit
d2cf19188a
@ -45,14 +45,14 @@ func (cmd *adminListFrontendsCommand) run(_ *cobra.Command, args []string) {
|
||||
fmt.Println()
|
||||
t := table.NewWriter()
|
||||
t.SetOutputMirror(os.Stdout)
|
||||
t.SetStyle(table.StyleColoredBright)
|
||||
t.AppendHeader(table.Row{"Token", "zId", "Url Template", "Public Name", "Created At", "Updated At"})
|
||||
t.SetStyle(table.StyleColoredDark)
|
||||
t.AppendHeader(table.Row{"Token", "zId", "Public Name", "Url Template", "Created At", "Updated At"})
|
||||
for _, pfe := range resp.Payload {
|
||||
t.AppendRow(table.Row{
|
||||
pfe.Token,
|
||||
pfe.ZID,
|
||||
pfe.URLTemplate,
|
||||
pfe.PublicName,
|
||||
pfe.URLTemplate,
|
||||
time.UnixMilli(pfe.CreatedAt),
|
||||
time.UnixMilli(pfe.UpdatedAt),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user