data2minio/main.go

30 lines
404 B
Go
Raw Normal View History

2023-04-01 16:43:13 +08:00
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"data_minio/cmd"
)
var (
rootCmd = &cobra.Command{
Use: "data_minio",
Long: "data_minio is a data to minio & database tool",
Version: "v 1.0",
}
)
func init() {
rootCmd.AddCommand(cmd.NewStartCmd())
}
func main() {
if err := rootCmd.Execute(); err != nil {
_, _ = fmt.Fprint(os.Stderr, err.Error())
os.Exit(1)
}
}