Files
pmg/internal/pty/input_read_windows.go
T
Abhisek DattaandGitHub 3848cc78e0 refactor: Maintain single code path for package manager execution (#256)
* refactor: Maintain single code path for package manager execution

* fix: Avoid context leak during interactive TTY read

* fix: PTY flow handling

* fix: Linter fixes
2026-05-13 19:14:00 +05:30

18 lines
230 B
Go

//go:build windows
package pty
import (
"context"
"io"
)
func readInput(ctx context.Context, src io.Reader, buf []byte) (int, error) {
select {
case <-ctx.Done():
return 0, ctx.Err()
default:
return src.Read(buf)
}
}