src/server/auth/cmds/cmds.go
func ListAdminsCmd(noMetrics, noPortForwarding *bool) *cobra.Command {
	listAdmins := &cobra.Command{
		Short: "List the current cluster admins",
		Long:  "List the current cluster admins",
		Run: cmdutil.Run(func([]string) error {
			c, err := client.NewOnUserMachine(!*noMetrics, !*noPortForwarding, "user")
			if err != nil {
				return err
			}
			defer c.Close()
			resp, err := c.GetAdmins(c.Ctx(), &auth.GetAdminsRequest{})
			if err != nil {
				return grpcutil.ScrubGRPC(err)
			}
			for _, user := range resp.Admins {
				fmt.Println(user)
			}
			return nil
		}),
	}
	return cmdutil.CreateAlias(listAdmins, "auth list-admins")
}
func ListAdminsCmd(noMetrics, noPortForwarding *bool) *cobra.Command {
	listAdmins := &cobra.Command{
		Short: "List the current cluster admins",
		Long:  "List the current cluster admins",
		Run: cmdutil.Run(func([]string) error {
			c, err := client.NewOnUserMachine(!*noMetrics, !*noPortForwarding, "user")
			if err != nil {
				return err
			}
			defer c.Close()
			resp, err := c.GetAdmins(c.Ctx(), &auth.GetAdminsRequest{})
			if err != nil {
				return grpcutil.ScrubGRPC(err)
			}
			for _, user := range resp.Admins {
				fmt.Println(user)
			}
			return nil
		}),
	}
	return cmdutil.CreateAlias(listAdmins, "auth list-admins")
}
// ListAdminsCmd returns a cobra command that lists the current cluster admins