grapicmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Init(cfgFile string)
	Fs() afero.Fs
	CurrentDir() string
	RootDir() string
	IsInsideApp() bool
	AppName() string
	Version() string
	Revision() string
	BuildDate() string
	ReleaseType() string
	InReader() io.Reader
	OutWriter() io.Writer
	ErrWriter() io.Writer
	ProtocConfig() *protoc.Config
}

Config stores general setting params and provides accessors for them.

func NewConfig

func NewConfig(
	currentDir string,
	appName, version, revision string,
	buildDate, releaseType string,
	in io.Reader,
	out, err io.Writer,
) Config

NewConfig creates new Config object.

Directories

Path Synopsis
internal
util
fs

Jump to

Keyboard shortcuts

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