// Package main provides the ACP schema code generation CLI.
package main

import (
	"fmt"
	"os"

	"github.com/spf13/cobra"
)

var (
	flagInput   string
	flagOutput  string
	flagDryRun  bool
	flagVersion string
	flagRepo    string
	flagForce   bool
)

func main() {
	root := &cobra.Command{
		Use:   "gen",
		Short: "ACP schema code generator",
	}

	root.AddCommand(downloadCmd())
	root.AddCommand(genAllCmd())
	root.AddCommand(genSchemaCmd())
	root.AddCommand(genMetaCmd())

	if err := root.Execute(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}
