cmd

package
v0.0.0-...-0000b31 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Display version information and exit",
	Run: func(*cobra.Command, []string) {
		fmt.Print(version.Version())
	},
}

VersionCmd is a sub-command to print version information

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

AddFlags carries over glog flags with new defaults

func ReadMeshConfig

func ReadMeshConfig(filename string) (*meshconfig.MeshConfig, error)

ReadMeshConfig gets mesh configuration from a config file

func WaitSignal

func WaitSignal(stop chan struct{})

WaitSignal awaits for SIGINT or SIGTERM and closes the channel

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