]> Cypherpunks repositories - gostls13.git/commitdiff
tools: update references to "x" to be "go tool x"
authorRob Pike <r@golang.org>
Fri, 3 Feb 2012 20:03:20 +0000 (07:03 +1100)
committerRob Pike <r@golang.org>
Fri, 3 Feb 2012 20:03:20 +0000 (07:03 +1100)
For instance, don't talk about gofix, talk about the
fix tool or "go tool fix".

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/5608053

src/cmd/cgo/doc.go
src/cmd/go/doc.go
src/cmd/go/fix.go
src/cmd/go/get.go
src/cmd/go/vet.go
src/cmd/gofmt/test.sh
src/cmd/prof/doc.go
src/pkg/exp/ebnflint/doc.go
src/pkg/exp/ebnflint/ebnflint.go

index 6282c0bbfac169e5e2922d0a9681ebf8aebefa7d..1d64c75ada9f6b07c25135f6d7fd4ca1215588ca 100644 (file)
@@ -6,7 +6,7 @@
 
 Cgo enables the creation of Go packages that call C code.
 
-Usage: cgo [compiler options] file.go
+Usage: go tool cgo [compiler options] file.go
 
 The compiler options are passed through uninterpreted when
 invoking gcc to compile the C parts of the package.
index 55eb4f7275d0a5c1e0a429a01ebd5d8bc491b5dc..e2df7beb1c0a2c4351895579d519acec9681e068 100644 (file)
@@ -12,7 +12,7 @@ The commands are:
     build       compile packages and dependencies
     clean       remove object files
     doc         run godoc on package sources
-    fix         run gofix on packages
+    fix         run go tool fix on packages
     fmt         run gofmt on package sources
     get         download and install packages and dependencies
     install     compile and install packages and dependencies
@@ -21,7 +21,7 @@ The commands are:
     test        test packages
     tool        run specified go tool
     version     print Go version
-    vet         run govet on packages
+    vet         run go tool vet on packages
 
 Use "go help [command]" for more information about a command.
 
@@ -128,7 +128,7 @@ To run godoc with specific options, run godoc itself.
 See also: go fix, go fmt, go vet.
 
 
-Run gofix on packages
+Run go tool fix on packages
 
 Usage:
 
@@ -176,7 +176,7 @@ and 'go install'.  See 'go help install'.
 The -d flag instructs get to stop after downloading the packages; that is,
 it instructs get not to install the packages.
 
-The -fix flag instructs get to run gofix on the downloaded packages
+The -fix flag instructs get to run the fix tool on the downloaded packages
 before resolving dependencies or building the code.
 
 The -u flag instructs get to use the network to update the named packages
@@ -350,7 +350,7 @@ Usage:
 Version prints the Go version, as reported by runtime.Version.
 
 
-Run govet on packages
+Run go tool vet on packages
 
 Usage:
 
@@ -361,7 +361,7 @@ Vet runs the Go vet command on the packages named by the import paths.
 For more about vet, see 'godoc vet'.
 For more about import paths, see 'go help importpath'.
 
-To run govet with specific options, run 'go tool vet'.
+To run the vet tool with specific options, run 'go tool vet'.
 
 See also: go fmt, go fix.
 
index 19091f35bf1097145e505fb77e1ce30454c837c4..6a0ad0774cd47837fdac97b17986dbf90cf3b182 100644 (file)
@@ -7,7 +7,7 @@ package main
 var cmdFix = &Command{
        Run:       runFix,
        UsageLine: "fix [importpath...]",
-       Short:     "run gofix on packages",
+       Short:     "run go tool fix on packages",
        Long: `
 Fix runs the Go fix command on the packages named by the import paths.
 
index f9f85423937b30059610519c2eeca3a79eea30cc..e66810cb3f6c1cc8c8a6e70f98eedda4236d5804 100644 (file)
@@ -29,7 +29,7 @@ and 'go install'.  See 'go help install'.
 The -d flag instructs get to stop after downloading the packages; that is,
 it instructs get not to install the packages.
 
-The -fix flag instructs get to run gofix on the downloaded packages
+The -fix flag instructs get to run the fix tool on the downloaded packages
 before resolving dependencies or building the code.
 
 The -u flag instructs get to use the network to update the named packages
index 6609ac8ef01c5add04d467ae17198d7de6bbfbb1..51dcec2bef7b1f6f3f2b42595b7bcbce90a98d05 100644 (file)
@@ -7,14 +7,14 @@ package main
 var cmdVet = &Command{
        Run:       runVet,
        UsageLine: "vet [importpath...]",
-       Short:     "run govet on packages",
+       Short:     "run go tool vet on packages",
        Long: `
 Vet runs the Go vet command on the packages named by the import paths.
 
 For more about vet, see 'godoc vet'.
 For more about import paths, see 'go help importpath'.
 
-To run govet with specific options, run 'go tool vet'.
+To run the vet tool with specific options, run 'go tool vet'.
 
 See also: go fmt, go fix.
        `,
index c18987f4d15268678eb86cb057548f6318d9b770..65601b101321dd0554562f85144e5caa6863a651 100755 (executable)
@@ -3,7 +3,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-eval $(gomake --no-print-directory -f ../../Make.inc go-env)
+eval $(go tool make --no-print-directory -f ../../Make.inc go-env)
 if [ -z "$O" ]; then
        echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
        exit 1
index 1f2209f04b77ea82a8e73ab6439dd9d0043a3a9e..08aa086291502ea66c59ebeecde813a03f88e6dd 100644 (file)
@@ -41,8 +41,7 @@ Flag -t sets the maximum real time to sample, in seconds, and -d
 sets the sampling interval in milliseconds.  The default is to sample
 every 100ms until the program completes.
 
-For reasons of disambiguation it is installed as 6prof although it also serves
-as an 8prof and a 5prof.
+It is installed as go tool prof and is architecture-independent.
 
 */
 package documentation
index 408227f71e1a04431cf77d58793be6cb7c1ccea2..4bb22a4cb8098d4dc9f5f88be56df78902812912 100644 (file)
@@ -13,7 +13,7 @@ Grammar productions are grouped in boxes demarcated by the HTML elements
 
 
 Usage:
-       ebnflint [--start production] [file]
+       go tool ebnflint [--start production] [file]
 
 The --start flag specifies the name of the start production for
 the grammar; it defaults to "Start".
index 2cb5aa6ed6c83115e387aadefc91d7ee2458db5e..d54fb229d03a5b15ad60ce3e5ff068ca621b6f96 100644 (file)
@@ -21,7 +21,7 @@ var fset = token.NewFileSet()
 var start = flag.String("start", "Start", "name of start production")
 
 func usage() {
-       fmt.Fprintf(os.Stderr, "usage: ebnflint [flags] [filename]\n")
+       fmt.Fprintf(os.Stderr, "usage: go tool ebnflint [flags] [filename]\n")
        flag.PrintDefaults()
        os.Exit(1)
 }