func PrintGroup(g api.Group) GroupView {
	return GroupView{
		Name:                       g.Name,
		Namespaces:                 g.Namespaces,
		ScopedPermissions:          g.ScopedPermissions,
		AdminPermissions:           g.AdminPermissions,
		ConnectClustersPermissions: g.ConnectClustersPermissions,
	}
}
PrintGroup returns a group for table printing
package management
import "github.com/lensesio/lenses-go/pkg/api"
type GroupView struct {
	Name                       string          `json:"name" yaml:"name" header:"name"`
	Namespaces                 []api.Namespace `json:"namespaces,omitempty" yaml:"namespaces" header:"Namespaces,count"`
	ScopedPermissions          []string        `json:"scopedPermissions" yaml:"scopedPermissions" header:"Scoped Permissions"`
	AdminPermissions           []string        `json:"adminPermissions" yaml:"adminPermissions" header:"Admin Permissions"`
	UserAccountsCount          int             `json:"userAccounts" yaml:"userAccounts" header:"User Accounts"`
	ServiceAccountsCount       int             `json:"serviceAccounts" yaml:"serviceAccounts" header:"Service Accounts"`
	ConnectClustersPermissions []string        `json:"connectClustersPermissions" yaml:"connectClustersPermissions" header:"Connect clusters access"`
}