Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "kafka-cli", Short: "kafka-cli utility", Long: `kafka-cli is a console util tool to access kafka cluster `, PersistentPreRun: func(cmd *cobra.Command, args []string) { var err error if verbose { sarama.Logger = log.New(os.Stderr, "[kafka-cli] ", log.LstdFlags) } c, err = sarama.NewClient(strings.Split(brokers, ","), cfg) if err != nil { fmt.Println(err) os.Exit(-1) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.