cURL supports stdin and uses os pipes directly without copying

This commit is contained in:
Anton Kozlov 2022-07-20 15:46:41 +01:00
parent 2a177e0fc4
commit e63ec34503
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ func curl(c *cli.Context) error {
// run kicks off a shell task and pipe the results to the respective std pipes
func run(cmd string, args ...string) error {
c := exec.Command(cmd, args...)
c.Stdin = os.Stdin
stderr, err := c.StderrPipe()
if err != nil {
return err