2022-02-25 21:49:09 -05:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var rootCmd = &cobra.Command{
|
|
|
|
Use: "bgbench",
|
|
|
|
Short: "Bit Goblin hardware benching tool.",
|
|
|
|
Long: `A PC hardware benchmarking tool written by Bit Goblin.`,
|
2022-02-26 00:23:58 -05:00
|
|
|
Version: "v0.3.0",
|
2022-02-25 21:49:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func Execute() {
|
|
|
|
if err := rootCmd.Execute(); err != nil {
|
|
|
|
fmt.Fprintln(os.Stderr, err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|