libcmd

package
v0.0.0-...-50815b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStringFlags

func GetStringFlags(cmd *cobra.Command, flags ...string) (vals map[string]string, err error)

GetStringFlags maps given flags into a map

Types

type Command

type Command struct {
	*zap.SugaredLogger
	cobra.Command
	Host    string
	Port    string
	Dev     bool
	LogPath string
}

Command is the default command-line app for Pinpoint components

func New

func New(name, short, long, version, defaultPort string) *Command

New creates a new CLI app and logger

func (*Command) Sync

func (c *Command) Sync() error

Sync safely calls logger sync

Jump to

Keyboard shortcuts

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