clit

package module
v0.0.0-...-655ca35 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableConfig = true
	EnableLog    = true
	Log          *toolkit.LogEngine
)

Functions

func AddConfig

func AddConfig(name, path string)

func Close

func Close()

func Commit

func Commit() error

func Config

func Config(name, key string, def interface{}) interface{}

func ExeDir

func ExeDir() string

func Flag

func Flag(name string) string

func LoadConfigFromFlag

func LoadConfigFromFlag(flagName, configName, defaultPath string)

func Parse

func Parse()

func ReadConfig

func ReadConfig(name, path string) error

func SetCloseFn

func SetCloseFn(fn func() error)

func SetConfig

func SetConfig(name, key string, value interface{})

func SetFlag

func SetFlag(name, value, usage string) *string

func SetPreFn

func SetPreFn(fn func() error)

func Value

func Value(name, configgroup string, def string) string

func WriteConfig

func WriteConfig(name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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