mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 11:41:25 +02: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()
|
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),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user