github.com/fraugster/parquet-go@v0.12.0/cmd/parquet-tool/cmds/root.go (about)

     1  package cmds
     2  
     3  import (
     4  	"log"
     5  
     6  	"github.com/spf13/cobra"
     7  )
     8  
     9  var rootCmd = &cobra.Command{
    10  	Use:   "parquet-tool",
    11  	Short: "parquet-tool is a tool to work with parquet files in pure Go",
    12  }
    13  
    14  // Execute try to find and execute the command
    15  func Execute() {
    16  	if err := rootCmd.Execute(); err != nil {
    17  		log.Fatalf("Failed to execute command: %q", err)
    18  	}
    19  }