Documentation
¶
Overview ¶
Package cli provides an Evy platform 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(*Platform)
Option is used on Platform 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 platform and writes its output to the given writer.
func WithSkipSleep ¶ added in v0.1.88
WithSkipSleep sets the SkipSleep field Platform and is intended to be used with NewPlatform.
type Platform ¶ added in v0.1.206
type Platform struct { evaluator.GraphicsPlatform SkipSleep bool // contains filtered or unexported fields }
Platform implements evaluator.Platform.
func NewPlatform ¶ added in v0.1.206
NewPlatform returns an initialized cli platform.
func (*Platform) Read ¶ added in v0.1.206
Read reads a line of input from stdin and strips trailing newline.
func (*Platform) Sleep ¶ added in v0.1.206
Sleep sleeps for dur. If the --skip-sleep flag is used, it does nothing.