cli

package
v0.0.0-...-129ea14 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the package version
	Version = "0.0.1"

	// Name is the name of the command line tool
	Name = "protogen"

	// Usage is the description of the tool displayed in the cli help section
	Usage = "Command line tool for organising code generation of Google's protocol buffers across multiple projects"

	// UsageText is the general usage of the command line tool
	UsageText = "[OPTIONS] [COMMAND]"
)

Variables

View Source
var (
	// GitCommit is the git commit hash of the source-tree during build
	GitCommit string

	// DefaultWorkDir is the default working directory
	// Set for OSX and Linux in code but can be overwritten with ldflags at build
	DefaultWorkDir = "/usr/local/var/protogen"
)

Functions

func ReadConfigFromFilePath

func ReadConfigFromFilePath(path string) (*config.Config, error)

ReadConfigFromFilePath will attempt to read a .protogen configuration file at the given path

func Run

func Run(args []string) error

Run will

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner holds the configuration for the running context

Jump to

Keyboard shortcuts

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