cli

package
v0.0.0-...-8ca6fb7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultReader io.Reader = os.Stdin

Functions

func IsCLIMode

func IsCLIMode(file string) bool

IsCLIMode returns whether Evans was launched as CLI mode or not.

func Run

func Run(cfg *config.Config, ui cui.UI, file, call string) error

Run is a main entrypoint for CLI mode. cli package will executes Run if Evans is launched as CLI mode.

Run returns below errors (Clients should unwrap returned error with errors.Cause): - os.PathError

  • Provided `file` is missing.
  • It is returned only when `file` is not empty.

- ErrLaunchFailed

  • Precondition error to launch CLI mode.

- TODO: Describe more error specification.

Types

type LaunchError

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

func (*LaunchError) Error

func (e *LaunchError) Error() string

Jump to

Keyboard shortcuts

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