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

Issue 6211053: code review 6211053: cmd/go: invoke godoc with import path when possible (Closed)

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

Description

cmd/go: invoke godoc with import path when possible Also add -n -x flags to doc, fmt, vet. Also shorten unknown command error. Fixes issue 3612. Fixes issue 3613.

Patch Set 1 #

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

Total comments: 2

Patch Set 3 : diff -r 6588ff08c067 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -9 lines) Patch
M src/cmd/go/build.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/cmd/go/doc.go View 1 6 chunks +12 lines, -3 lines 0 comments Download
M src/cmd/go/fmt.go View 1 5 chunks +18 lines, -3 lines 0 comments Download
M src/cmd/go/main.go View 1 2 2 chunks +10 lines, -2 lines 1 comment Download
M src/cmd/go/vet.go View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 7
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2012-05-15 15:24:58 UTC) #1
bradfitz
LGTM http://codereview.appspot.com/6211053/diff/2001/src/cmd/go/main.go File src/cmd/go/main.go (right): http://codereview.appspot.com/6211053/diff/2001/src/cmd/go/main.go#newcode343 src/cmd/go/main.go:343: fmt.Printf("%s\n", strings.Join(cmdline, " ")) %q on command-line args ...
12 years, 10 months ago (2012-05-15 15:33:00 UTC) #2
r
LGTM i wonder what the -n and -x flags do. http://codereview.appspot.com/6211053/diff/2001/src/cmd/go/main.go File src/cmd/go/main.go (right): http://codereview.appspot.com/6211053/diff/2001/src/cmd/go/main.go#newcode343 ...
12 years, 10 months ago (2012-05-15 15:41:52 UTC) #3
bradfitz
On Tue, May 15, 2012 at 8:41 AM, <r@golang.org> wrote: > LGTM > i wonder ...
12 years, 10 months ago (2012-05-15 15:49:51 UTC) #4
rsc
the -n and -x output is never quoted right now. it's meant to be suggestive, ...
12 years, 10 months ago (2012-05-15 16:54:05 UTC) #5
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=5b1e024a5e89 *** cmd/go: invoke godoc with import path when possible Also add ...
12 years, 10 months ago (2012-05-15 16:54:05 UTC) #6
r
12 years, 10 months ago (2012-05-15 16:59:34 UTC) #7
for the record.

http://codereview.appspot.com/6211053/diff/3/src/cmd/go/main.go
File src/cmd/go/main.go (right):

http://codereview.appspot.com/6211053/diff/3/src/cmd/go/main.go#newcode147
src/cmd/go/main.go:147: fmt.Fprintf(os.Stderr, "go: unknown subcommand %#q\nRun
'go help' for usage.\n", args[0])
now that i think about it, this is an odd place to use %#q
Sign in to reply to this message.

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