mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore(cli): replace clibase with external coder/serpent (#12252)
This commit is contained in:
@@ -18,9 +18,9 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/v2/cli/clibase"
|
||||
"github.com/coder/coder/v2/pty"
|
||||
"github.com/coder/coder/v2/testutil"
|
||||
"github.com/coder/serpent"
|
||||
)
|
||||
|
||||
func New(t *testing.T, opts ...pty.Option) *PTY {
|
||||
@@ -374,7 +374,7 @@ func (p *PTY) Close() error {
|
||||
return p.closeErr
|
||||
}
|
||||
|
||||
func (p *PTY) Attach(inv *clibase.Invocation) *PTY {
|
||||
func (p *PTY) Attach(inv *serpent.Invocation) *PTY {
|
||||
p.t.Helper()
|
||||
|
||||
inv.Stdout = p.Output()
|
||||
|
||||
Reference in New Issue
Block a user