mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Go: Bump github.com/ActiveState/termtest from 0.7.1 to 0.7.2 (#6621)
Bumps [github.com/ActiveState/termtest](https://github.com/ActiveState/termtest) from 0.7.1 to 0.7.2. - [Release notes](https://github.com/ActiveState/termtest/releases) - [Commits](https://github.com/ActiveState/termtest/compare/v0.7.1...v0.7.2) --- updated-dependencies: - dependency-name: github.com/ActiveState/termtest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
2
go.mod
2
go.mod
@@ -3,7 +3,7 @@ module github.com/redhat-developer/odo
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/ActiveState/termtest v0.7.1
|
||||
github.com/ActiveState/termtest v0.7.2
|
||||
github.com/ActiveState/termtest/expect v0.7.0
|
||||
github.com/AlecAivazis/survey/v2 v2.3.5
|
||||
github.com/Xuanwo/go-locale v1.1.0
|
||||
|
||||
6
go.sum
6
go.sum
@@ -40,8 +40,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
|
||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
github.com/ActiveState/termtest v0.7.1 h1:Nd6iVqnYoJNkJXHSG967bWJ+b1zbCmZp9+NQMeWobus=
|
||||
github.com/ActiveState/termtest v0.7.1/go.mod h1:krmYxOsjckZpOKlHI+wDqaGkpOBtM55Lr8YZckriE+0=
|
||||
github.com/ActiveState/termtest v0.7.2 h1:vNPMpI2AyZnLZzZn/CRpMZzIuVL0XhaTLA4qyghIGF8=
|
||||
github.com/ActiveState/termtest v0.7.2/go.mod h1:krmYxOsjckZpOKlHI+wDqaGkpOBtM55Lr8YZckriE+0=
|
||||
github.com/ActiveState/termtest/conpty v0.5.0 h1:JLUe6YDs4Jw4xNPCU+8VwTpniYOGeKzQg4SM2YHQNA8=
|
||||
github.com/ActiveState/termtest/conpty v0.5.0/go.mod h1:LO4208FLsxw6DcNZ1UtuGUMW+ga9PFtX4ntv8Ymg9og=
|
||||
github.com/ActiveState/termtest/expect v0.7.0 h1:VNrcfXTHXXoe7i+3WgF5QJhstQLGP4saj+XYM9ZzBvY=
|
||||
@@ -378,8 +378,6 @@ github.com/devfile/api/v2 v2.2.0/go.mod h1:dN7xFrOVG+iPqn4UKGibXLd5oVsdE8XyK9OEb
|
||||
github.com/devfile/library v1.2.1-0.20211104222135-49d635cb492f/go.mod h1:uFZZdTuRqA68FVe/JoJHP92CgINyQkyWnM2Qyiim+50=
|
||||
github.com/devfile/library v1.2.1-0.20220308191614-f0f7e11b17de/go.mod h1:GSPfJaBg0+bBjBHbwBE5aerJLH6tWGQu2q2rHYd9czM=
|
||||
github.com/devfile/library/v2 v2.0.1/go.mod h1:paJ0PARAVy0br13VpBEQ4fO3rZVDxWtooQ29+23PNBk=
|
||||
github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801 h1:DreLje9666H/di1jx4nj7+I4vV6C4M0T02FW05heI+0=
|
||||
github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801/go.mod h1:DkZkmV09jZjOtkVgZ8YMWeMTIRM/twUGE1HdToIhkUA=
|
||||
github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7 h1:LdIKu3YGBGolTEx957mH8yGzTNKMtu19GFzslPdXFrg=
|
||||
github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7/go.mod h1:DkZkmV09jZjOtkVgZ8YMWeMTIRM/twUGE1HdToIhkUA=
|
||||
github.com/devfile/registry-support/index/generator v0.0.0-20220222194908-7a90a4214f3e/go.mod h1:iRPBxs+ZjfLEduVXpCCIOzdD2588Zv9OCs/CcXMcCCY=
|
||||
|
||||
24
vendor/github.com/ActiveState/termtest/conproc.go
generated
vendored
24
vendor/github.com/ActiveState/termtest/conproc.go
generated
vendored
@@ -12,7 +12,6 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/user"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
@@ -20,7 +19,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
expect "github.com/ActiveState/termtest/expect"
|
||||
"github.com/ActiveState/termtest/expect"
|
||||
"github.com/ActiveState/termtest/internal/osutils"
|
||||
)
|
||||
|
||||
@@ -156,6 +155,11 @@ func (cp *ConsoleProcess) Executable() string {
|
||||
return cp.cmdName
|
||||
}
|
||||
|
||||
// Cmd returns the underlying command
|
||||
func (cp *ConsoleProcess) Cmd() *exec.Cmd {
|
||||
return cp.cmd
|
||||
}
|
||||
|
||||
// WorkDirectory returns the directory in which the command shall be run
|
||||
func (cp *ConsoleProcess) WorkDirectory() string {
|
||||
return cp.opts.WorkDirectory
|
||||
@@ -216,10 +220,22 @@ func (cp *ConsoleProcess) Expect(value string, timeout ...time.Duration) (string
|
||||
return cp.console.Expect(opts...)
|
||||
}
|
||||
|
||||
// ExpectCustom listens to the terminal output and returns once the supplied condition is satisfied or
|
||||
// a timeout occurs
|
||||
// Default timeout is 10 seconds
|
||||
func (cp *ConsoleProcess) ExpectCustom(opt expect.ExpectOpt, timeout ...time.Duration) (string, error) {
|
||||
opts := []expect.ExpectOpt{opt}
|
||||
if len(timeout) > 0 {
|
||||
opts = append(opts, expect.WithTimeout(timeout[0]))
|
||||
}
|
||||
|
||||
return cp.console.Expect(opts...)
|
||||
}
|
||||
|
||||
// WaitForInput returns once a shell prompt is active on the terminal
|
||||
// Default timeout is 10 seconds
|
||||
func (cp *ConsoleProcess) WaitForInput(timeout ...time.Duration) (string, error) {
|
||||
usr, err := user.Current()
|
||||
homeDir, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -230,7 +246,7 @@ func (cp *ConsoleProcess) WaitForInput(timeout ...time.Duration) (string, error)
|
||||
}
|
||||
|
||||
cp.SendLine(msg)
|
||||
return cp.Expect("wait_ready_"+usr.HomeDir, timeout...)
|
||||
return cp.Expect("wait_ready_"+homeDir, timeout...)
|
||||
}
|
||||
|
||||
// Send sends a new line to the terminal, as if a user typed it
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -1,7 +1,7 @@
|
||||
# cloud.google.com/go v0.81.0
|
||||
## explicit; go 1.11
|
||||
cloud.google.com/go/compute/metadata
|
||||
# github.com/ActiveState/termtest v0.7.1
|
||||
# github.com/ActiveState/termtest v0.7.2
|
||||
## explicit; go 1.14
|
||||
github.com/ActiveState/termtest
|
||||
github.com/ActiveState/termtest/internal/osutils
|
||||
|
||||
Reference in New Issue
Block a user