app

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package app provides the entrypoint for Evans. main package uses app package for launch Evans.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProtoFileRequired = errors.New("least one proto file required")
)

Functions

This section is empty.

Types

type Command

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

func New

func New(ui cui.UI) *Command

New instantiate CLI interface. ui is used for both of CLI mode and REPL mode. If ui is nil, cui.NewBasicUI will be used.

func (*Command) Run

func (c *Command) Run(args []string) int

Run starts Evans. If returned int value is 0, Evans has finished normally. Conversely value is 1, Evans has finished with some errors.

Jump to

Keyboard shortcuts

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