command

package
v0.0.0-...-b3b01f0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = &Config{}

Cfg is a instance of Config in current context

View Source
var CliFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "endpoint",
		Usage:       "Etcd endpoint",
		EnvVars:     []string{"ETCD_ENDPOINT"},
		Value:       defaultEndpoint,
		Destination: &Cfg.endpoint,
	},
	&cli.StringFlag{
		Name:        "key",
		Usage:       "Etcd TLS client key",
		EnvVars:     []string{"ETCD_KEY"},
		Destination: &Cfg.key,
	},
	&cli.StringFlag{
		Name:        "cert",
		Usage:       "Etcd TLS client certificate",
		EnvVars:     []string{"ETCD_CERT"},
		Destination: &Cfg.cert,
	},
	&cli.StringFlag{
		Name:        "cacert",
		Usage:       "Etcd server TLS CA certificate",
		EnvVars:     []string{"ETCD_CA_CERT"},
		Destination: &Cfg.cacert,
	},
}

CliFlags represents CLI flags

View Source
var Commands []*cli.Command

Commands includes all cli sub-commands

View Source
var Version = "0.0.4"

Version is latest released version

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config represents CLI config

Jump to

Keyboard shortcuts

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