func toRegion(region *ps.Region) *Region {
	return &Region{
		Name:    fmt.Sprintf("%s - %s", region.Name, region.Location),
		Slug:    region.Slug,
		Enabled: region.Enabled,
		orig:    region,
	}
}
toRegion returns a struct that prints out various fields of a region.
package region
import (
	"encoding/json"
	"fmt"
	"github.com/planetscale/cli/internal/cmdutil"
	ps "github.com/planetscale/planetscale-go/planetscale"
	"github.com/spf13/cobra"
)
func RegionCmd(ch *cmdutil.Helper) *cobra.Command {
	cmd := &cobra.Command{
		Use:               "region <command>",
		Short:             "List regions",
		PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
	}
	cmd.PersistentFlags().StringVar(&ch.Config.Organization, "org", ch.Config.Organization,
		"The organization for the current user")
	cmd.MarkPersistentFlagRequired("org")  
	cmd.AddCommand(ListCmd(ch))
	return cmd
}
type Regions []*Region
type Region struct {
	Name    string `header:"name" json:"display_name"`
	Slug    string `header:"slug" json:"slug"`
	Enabled bool   `header:"enabled" json:"enabled"`
	orig *ps.Region
}