Documentation ¶
Overview ¶
Package cli provides an Evy runtime to for Evy CLI execution in terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.1.88
type Option func(*Runtime)
Option is used on Runtime creation to set optional parameters.
func WithCls ¶ added in v0.1.130
func WithCls(clsFn func()) Option
WithCls sets the action to be done for `cls` command.
func WithOutputWriter ¶ added in v0.1.100
WithOutputWriter sets the text output writer, which defaults to os.Stdout.
func WithSVG ¶ added in v0.1.88
WithSVG sets up an SVG graphics runtime and writes its output to the given writer.
func WithSkipSleep ¶ added in v0.1.88
WithSkipSleep sets the SkipSleep field Runtime and is intended to be used with NewRuntime.
type Runtime ¶
type Runtime struct { evaluator.GraphicsRuntime SkipSleep bool // contains filtered or unexported fields }
Runtime implements evaluator.Runtime.
func NewRuntime ¶
NewRuntime returns an initialized cli runtime.
Click to show internal directories.
Click to hide internal directories.