cli

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectInteractive

func ExpectInteractive(userinput func(*Console), testcli func())

func Stdio

func Stdio(c *expect.Console) terminal.Stdio

Types

type Console

type Console struct {
	Console *expect.Console
}

func (*Console) Esc

func (c *Console) Esc()

func (*Console) ExpectEOF

func (c *Console) ExpectEOF() string

func (*Console) ExpectString

func (c *Console) ExpectString(s string) string

func (*Console) PressDown

func (c *Console) PressDown()

func (*Console) Send

func (c *Console) Send(s string) int

func (*Console) SendLine

func (c *Console) SendLine(s string) int

Jump to

Keyboard shortcuts

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