func AuditLogCmd(ch *cmdutil.Helper) *cobra.Command {
	cmd := &cobra.Command{
		Use:               "audit-log <command>",
		Short:             "List audit logs",
		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
}
AuditLogCmd handles audit logs.
package auditlog
import (
	"encoding/json"
	"fmt"
	"strings"
	"time"
	"github.com/lensesio/tableprinter"
	"github.com/planetscale/cli/internal/cmdutil"
	"github.com/spf13/cobra"
	ps "github.com/planetscale/planetscale-go/planetscale"
)