cmds

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "kafka-util",
	Version: version,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		if vars.BootstrapServer != "" {

			return nil
		}

		var ok bool
		if vars.BootstrapServer, ok = os.LookupEnv(bootstrapServerEnvVar); ok {

			return nil
		}

		return fmt.Errorf("missing bootstrap server; must be provided via the '--bootstrap-server' flag or the '%s' environment variable", bootstrapServerEnvVar)
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL