root.go 290 B

1234567891011121314151617181920
  1. package cmd
  2. import (
  3. "github.com/spf13/cobra"
  4. "os"
  5. )
  6. var rootCmd = &cobra.Command{
  7. Use: "FluentTxMachine",
  8. Short: "Tx on the machine",
  9. Run: func(cmd *cobra.Command, args []string) {
  10. cmd.Help()
  11. },
  12. }
  13. func Execute() {
  14. if err := rootCmd.Execute(); err != nil {
  15. os.Exit(-1)
  16. }
  17. }