Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(255)

Issue 4517134: code review 4517134: exec: add Cmd methods StdinPipe, StdoutPipe, StderrPipe (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by bradfitz
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

exec: add Cmd methods StdinPipe, StdoutPipe, StderrPipe It gets annoying to do this in caller code otherwise, especially having to remember to Close one side.

Patch Set 1 #

Patch Set 2 : diff -r 8ec69353bb78 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8ec69353bb78 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 4bccc451c643 https://go.googlecode.com/hg #

Total comments: 2

Patch Set 5 : diff -r efb9e78d32e7 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -10 lines) Patch
M src/pkg/exec/exec.go View 1 2 3 4 2 chunks +59 lines, -2 lines 0 comments Download
M src/pkg/exec/exec_test.go View 1 3 chunks +72 lines, -0 lines 0 comments Download
M src/pkg/http/cgi/host.go View 1 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 8
bradfitz
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-06-02 15:35:15 UTC) #1
rsc
http://codereview.appspot.com/4517134/diff/5001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/4517134/diff/5001/src/pkg/exec/exec.go#newcode286 src/pkg/exec/exec.go:286: // StdinPipe creates a pipe hooked up to the ...
13 years, 10 months ago (2011-06-02 15:39:00 UTC) #2
rsc
exec: add Cmd methods StdinPipe, StdoutPipe, StderrPipe avoiding {,} shorthands makes grep more useful
13 years, 10 months ago (2011-06-02 15:39:50 UTC) #3
bradfitz
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-02 17:12:41 UTC) #4
bradfitz
http://codereview.appspot.com/4517134/diff/5001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/4517134/diff/5001/src/pkg/exec/exec.go#newcode286 src/pkg/exec/exec.go:286: // StdinPipe creates a pipe hooked up to the ...
13 years, 10 months ago (2011-06-02 17:13:12 UTC) #5
rsc
LGTM http://codereview.appspot.com/4517134/diff/11001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/4517134/diff/11001/src/pkg/exec/exec.go#newcode316 src/pkg/exec/exec.go:316: } if c.process != nil { return nil, ...
13 years, 10 months ago (2011-06-02 17:15:37 UTC) #6
bradfitz
http://codereview.appspot.com/4517134/diff/11001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/4517134/diff/11001/src/pkg/exec/exec.go#newcode316 src/pkg/exec/exec.go:316: } On 2011/06/02 17:15:37, rsc wrote: > if c.process ...
13 years, 10 months ago (2011-06-02 17:17:30 UTC) #7
bradfitz
13 years, 10 months ago (2011-06-02 17:26:12 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=7a1ae1f1a7df ***

exec: add Cmd methods StdinPipe, StdoutPipe, StderrPipe

It gets annoying to do this in caller code otherwise,
especially having to remember to Close one side.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4517134
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b