command

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVStoreConsul    = "consul"
	KVStoreZookeeper = "zookeeper"
	KVStoreEtcd      = "etcd"
)

Variables

This section is empty.

Functions

func AddKVStoreFlags

func AddKVStoreFlags(fs *flag.FlagSet, kv *KVStoreConfig)

AddKVStoreFlags adds to an existing flagset the command lines flags to configure the key-value store connection

func RunCommand

func RunCommand(commandName string, command cli.CommandFactory)

RunCommand runs a single command

func RunSubcommands

func RunSubcommands(commandName string, subcommands map[string]cli.CommandFactory)

RunSubcommands a command given its subcommands

Types

type KVStoreConfig

type KVStoreConfig struct {
	Address string
	Store   string
	Prefix  string
}

KVStoreConfig holds the key-value store configuration set from the command line

Jump to

Keyboard shortcuts

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