cmd

package
v0.9.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCLI

func InitCLI(cfg CLIConfig, level, timestamp, caller *string, keyValuePairs map[string]*string, emoji *bool) error

InitCLI initialize the cli with the given config object

func Run

func Run(osArgs []string) error

Run runs the cli application with given os arguments.

Types

type CLIConfig

type CLIConfig struct {
	Name    string // name of this cli
	Usage   string // usage of this cli
	Version string // app version
}

CLIConfig represents cli configuration

Jump to

Keyboard shortcuts

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