// There are no API that fetches group info
There are no API that fetches group info
// There are no API that fetches group info
func doGetGroups(context *cli.Context) error {
	c := NewLastPassClientFromContext(context)
	s := lp.NewUserService(c)
	users, err := s.GetAllUsers()
	lp.DieIf(errors.Wrap(err, "Failed executing doGetGroups()"))
	deps := make(map[string]bool)
	for _, u := range users {
		for _, group := range u.Groups {
			if _, ok := deps[group]; !ok {
				deps[group] = true
			}
		}
	}
	for dep := range deps {
		fmt.Println(dep)
	}
	return nil
}
func doGetGroups ( context * cli . Context ) error { c := NewLastPassClientFromContext ( context ) s := lp . NewUserService ( c ) users , err := s . GetAllUsers ( ) lp . DieIf ( errors . Wrap ( err , " " ) ) deps := make ( map [ string ] bool ) for _ , u := range users { for _ , group := range u . Groups { if _ , ok := deps [ group ] ; ! ok { deps [ group ] = true } } } for dep := range deps { fmt . Println ( dep ) } return nil }
There are no API that fetches group info
There are no API that fetches group info