cURL supports stdin and uses os pipes directly without copying
This commit is contained in:
		
							parent
							
								
									2a177e0fc4
								
							
						
					
					
						commit
						e63ec34503
					
				|  | @ -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
 | // run kicks off a shell task and pipe the results to the respective std pipes
 | ||||||
| func run(cmd string, args ...string) error { | func run(cmd string, args ...string) error { | ||||||
| 	c := exec.Command(cmd, args...) | 	c := exec.Command(cmd, args...) | ||||||
|  | 	c.Stdin = os.Stdin | ||||||
| 	stderr, err := c.StderrPipe() | 	stderr, err := c.StderrPipe() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return err | 		return err | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue