cli

package
v0.0.0-...-bcf6333 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//EnvPrefix is the prefix an environment variable must have to be loaded.
	//This prefix is not part of the config key.
	EnvPrefix = "GFSAPP__"
)

Variables

This section is empty.

Functions

func EnvKeyParser

func EnvKeyParser(key string) config.Key

EnvKeyParser parses key according the following rules: key is coverted to lower case via strings.ToLower. Then it is split around SINGLE underscores. Within those values, consecutive underscores are reduced by a count of one.

func Main

func Main(ctx context.Context, _ []string, _ io.Reader, _, outErr io.Writer) int

Main is the the entrypoint client code can use to invoke gfsweb as if it were entered through the command line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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