mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 17:53:28 +00:00
ls consistency: make tctl apps ls output consistent
``` Host Name Public Address URI Labels Version ---- ----------- -------------------- ------------------- ------------------------------- ------------- corn example-app example-app.corn.lan http://0.0.0.0:8000 teleport.dev/origin=config-file 8.0.0-alpha.1 ```
This commit is contained in:
parent
23731673d9
commit
cff5165ad3
|
@ -459,11 +459,11 @@ func (a *appServerCollection) resources() (r []types.Resource) {
|
|||
}
|
||||
|
||||
func (a *appServerCollection) writeText(w io.Writer) error {
|
||||
t := asciitable.MakeTable([]string{"Application", "Host", "Public Address", "URI", "Labels"})
|
||||
t := asciitable.MakeTable([]string{"Host", "Name", "Public Address", "URI", "Labels", "Version"})
|
||||
for _, server := range a.servers {
|
||||
app := server.GetApp()
|
||||
t.AddRow([]string{
|
||||
app.GetName(), server.GetHostname(), app.GetPublicAddr(), app.GetURI(), app.LabelsString(),
|
||||
server.GetHostname(), app.GetName(), app.GetPublicAddr(), app.GetURI(), app.LabelsString(), server.GetTeleportVersion(),
|
||||
})
|
||||
}
|
||||
_, err := t.AsBuffer().WriteTo(w)
|
||||
|
|
Loading…
Reference in a new issue