Documentation ¶
Overview ¶
Package mode provides entrypoints for all modes that are provided from Evans.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCLIReader io.Reader = os.Stdin
DefaultCLIReader is the reader that is read for inputting request values. It is exported for E2E testing.
Functions ¶
func RunAsCLIMode ¶
func RunAsCLIMode(cfg *config.Config, invoker CLIInvoker) error
RunAsCLIMode starts Evans as CLI mode.
Types ¶
type CLIInvoker ¶ added in v0.9.0
CLIInvoker represents an invokable function for CLI mode.
func NewCallCLIInvoker ¶ added in v0.9.0
func NewCallCLIInvoker(ui cui.UI, methodName, filePath string, headers config.Header, enrich bool, formatType string) (CLIInvoker, error)
NewCallCLIInvoker returns an CLIInvoker implementation for calling RPCs. If filePath is empty, the invoker tries to read input from stdin.
func NewDescribeCLIInvoker ¶ added in v0.9.0
func NewDescribeCLIInvoker(ui cui.UI, fqn string) CLIInvoker
func NewListCLIInvoker ¶ added in v0.9.0
func NewListCLIInvoker(ui cui.UI, fqn, format string) CLIInvoker
Click to show internal directories.
Click to hide internal directories.