diff --git a/cmd/enbas/show.go b/cmd/enbas/show.go index 3d6df4f..a83d63c 100644 --- a/cmd/enbas/show.go +++ b/cmd/enbas/show.go @@ -173,6 +173,15 @@ func (c *showCommand) showList(gts *client.Client) error { return fmt.Errorf("unable to retrieve the list; %w", err) } + accounts, err := gts.GetAccountsFromList(c.listID, 0) + if err != nil { + return fmt.Errorf("unable to retrieve the accounts from the list; %w", err) + } + + for i := range accounts { + list.Accounts[accounts[i].ID] = accounts[i].Username + } + fmt.Println(list) return nil