// listNms lists all the nms-servers from the service
listNms lists all the nms-servers from the service
// listNms lists all the nms - servers from the service
func listNms(ctx context.Context) error {
	resp, err := nmsService.List(ctx, avian.NmsListRequest{})
	if err != nil {
		return err
	}
	var headers table.Row
	var body []table.Row
	headers = table.Row{"ID", "Address", "Port", "Workers", "In-Use"}
	for _, s := range resp.Nms {
		body = append(body, table.Row{s.ID, s.Address, s.Port, s.Workers, s.InUse})
	}
	fmt.Println(pretty.Format(headers, body))
	return nil
}
func listNms ( ctx context . Context ) error { resp , err := nmsService . List ( ctx , avian . NmsListRequest { } ) if err != nil { return err } var headers table . Row var body [ ] table . Row headers = table . Row { " " , " " , " " , " " , " " } for _ , s := range resp . Nms { body = append ( body , table . Row { s . ID , s . Address , s . Port , s . Workers , s . InUse } ) } fmt . Println ( pretty . Format ( headers , body ) ) return nil }
listNms lists all the nms-servers from the service
listNms lists all the nms - servers from the service