chore(cli): replace clibase with external coder/serpent (#12252)

This commit is contained in:
Ammar Bandukwala
2024-03-15 11:24:38 -05:00
committed by GitHub
parent bed2545636
commit 496232446d
185 changed files with 3770 additions and 7221 deletions
+2 -2
View File
@@ -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()