zk

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdZK = &cobra.Command{
	Use:   "zk",
	Short: "Zookeeper Actions",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		switch {
		case cmd.Flags().Changed("zookeeper") || cmd.Flags().Changed("broker"):
			zookeeper.LaunchZKClient(cfg.AdhocContext(cxFlags), zkFlags)
		default:
			zookeeper.LaunchZKClient(cfg.GetContext(zkFlags.Context), zkFlags)
		}
	},
	Run: func(cmd *cobra.Command, args []string) {
		switch true {
		case len(args) > 0:
			out.Failf("No such resource: %v", args[0])
		default:
			cmd.Help()
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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