go-expect icon indicating copy to clipboard operation
go-expect copied to clipboard

an expect-like golang library to automate control of terminal or console based programs.

Results 10 go-expect issues
Sort by recently updated
recently updated
newest added

This pr fixes go-expect test compatibility on windows by replacing https://github.com/kr/pty with https://github.com/creack/pty and adding some dependencies. Fixes #10

Eliminate a lot of code with a proper cancellable reader.

Because `x/crypto/ssh/terminal` is deprecated and moved to `x/term`. https://pkg.go.dev/golang.org/x/crypto/ssh/terminal#pkg-overview

How to gives control of the child process to the interactive user (the human at the keyboard) like the interact method in expect/pexpect? https://wiki.tcl-lang.org/page/interact

It looks like this library is compatible with only Linux? Is it possible to make it compatible with Windows? Would that require lot of work or it would be something...

I'm just getting started with go-expect and I'm having difficulty getting a simple test to work. I'm not sure where else to post this because it's not really an issue,...

bug

Hello, Thank you for the work for this library. I am trying to use it to enable FileVault in macOS and retrieve the FileVault key back. The issue I have...

Arguably, the single-biggest use-case for any expect library is automating SSH logins. I am successfully doing this with [`ssh_logger`][1] but it took a while to grok all the corners of...

``` // Deprecated: As of Go 1.16, this value is simply [io.Discard]. var Discard io.Writer = io.Discard // Deprecated: As of Go 1.17, this function simply calls [os.CreateTemp]. func TempFile(dir,...