Browse code

Fix typs from go to Go

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/10/18 19:50:11
Showing 28 changed files
... ...
@@ -30,7 +30,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
30 30
 	}
31 31
 
32 32
 	flags := cmd.Flags()
33
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
33
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
34 34
 	flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes")
35 35
 
36 36
 	return cmd
... ...
@@ -29,7 +29,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
29 29
 	}
30 30
 
31 31
 	flags := cmd.Flags()
32
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
32
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
33 33
 	return cmd
34 34
 }
35 35
 
... ...
@@ -27,7 +27,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
27 27
 		},
28 28
 	}
29 29
 
30
-	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
30
+	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
31 31
 
32 32
 	return cmd
33 33
 }
... ...
@@ -36,7 +36,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
36 36
 	}
37 37
 
38 38
 	flags := cmd.Flags()
39
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
39
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
40 40
 	flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
41 41
 	return cmd
42 42
 }
... ...
@@ -32,7 +32,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
32 32
 	}
33 33
 
34 34
 	flags := cmd.Flags()
35
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
35
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
36 36
 	return cmd
37 37
 }
38 38
 
... ...
@@ -37,7 +37,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
37 37
 	}
38 38
 
39 39
 	flags := cmd.Flags()
40
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
40
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
41 41
 	flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
42 42
 	return cmd
43 43
 }
... ...
@@ -45,7 +45,7 @@ func NewEventsCommand(dockerCli *command.DockerCli) *cobra.Command {
45 45
 	flags.StringVar(&opts.since, "since", "", "Show all events created since timestamp")
46 46
 	flags.StringVar(&opts.until, "until", "", "Stream events until this timestamp")
47 47
 	flags.VarP(&opts.filter, "filter", "f", "Filter output based on conditions provided")
48
-	flags.StringVar(&opts.format, "format", "", "Format the output using the given go template")
48
+	flags.StringVar(&opts.format, "format", "", "Format the output using the given Go template")
49 49
 
50 50
 	return cmd
51 51
 }
... ...
@@ -37,7 +37,7 @@ func NewInfoCommand(dockerCli *command.DockerCli) *cobra.Command {
37 37
 
38 38
 	flags := cmd.Flags()
39 39
 
40
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
40
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
41 41
 
42 42
 	return cmd
43 43
 }
... ...
@@ -35,7 +35,7 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
35 35
 	}
36 36
 
37 37
 	flags := cmd.Flags()
38
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
38
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
39 39
 	flags.StringVar(&opts.inspectType, "type", "", "Return JSON for specified type")
40 40
 	flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")
41 41
 
... ...
@@ -52,7 +52,7 @@ func NewVersionCommand(dockerCli *command.DockerCli) *cobra.Command {
52 52
 
53 53
 	flags := cmd.Flags()
54 54
 
55
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
55
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
56 56
 
57 57
 	return cmd
58 58
 }
... ...
@@ -28,7 +28,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
28 28
 		},
29 29
 	}
30 30
 
31
-	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
31
+	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
32 32
 
33 33
 	return cmd
34 34
 }
... ...
@@ -13,7 +13,7 @@ Get real time events from the server
13 13
 
14 14
 Options:
15 15
   -f, --filter value   Filter output based on conditions provided (default [])
16
-      --format string  Format the output using the given go template
16
+      --format string  Format the output using the given Go template
17 17
       --help           Print usage
18 18
       --since string   Show all events created since timestamp
19 19
       --until string   Stream events until this timestamp
... ...
@@ -12,7 +12,7 @@ Usage:  docker info [OPTIONS]
12 12
 Display system-wide information
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
 ```
18 18
 
... ...
@@ -13,7 +13,7 @@ Return low-level information on one or multiple containers, images, volumes,
13 13
 networks, nodes, services, or tasks identified by name or ID.
14 14
 
15 15
 Options:
16
-  -f, --format       Format the output using the given go template
16
+  -f, --format       Format the output using the given Go template
17 17
       --help         Print usage
18 18
   -s, --size         Display total file sizes if the type is container
19 19
                      values are "image" or "container" or "task
... ...
@@ -12,7 +12,7 @@ Usage:  docker network inspect [OPTIONS] NETWORK [NETWORK...]
12 12
 Display detailed information on one or more networks
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
 ```
18 18
 
... ...
@@ -12,7 +12,7 @@ Usage:  docker node inspect [OPTIONS] self|NODE [NODE...]
12 12
 Display detailed information on one or more nodes
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
       --pretty          Print the information in a human friendly format.
18 18
 ```
... ...
@@ -13,7 +13,7 @@ Usage:  docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
13 13
 Display detailed information on one or more plugins
14 14
 
15 15
 Options:
16
-      -f, --format string   Format the output using the given go template
16
+      -f, --format string   Format the output using the given Go template
17 17
           --help            Print usage
18 18
 ```
19 19
 
... ...
@@ -12,7 +12,7 @@ Usage:  docker service inspect [OPTIONS] SERVICE [SERVICE...]
12 12
 Display detailed information on one or more services
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
       --pretty          Print the information in a human friendly format.
18 18
 ```
... ...
@@ -59,6 +59,7 @@ Total reclaimed space: 13.5 MB
59 59
 * [volume ls](volume_ls.md)
60 60
 * [volume inspect](volume_inspect.md)
61 61
 * [volume rm](volume_rm.md)
62
+* [volume prune](volume_prune.md)
62 63
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
63 64
 * [system df](system_df.md)
64 65
 * [container prune](container_prune.md)
... ...
@@ -12,7 +12,7 @@ Usage:  docker version [OPTIONS]
12 12
 Show the Docker version information
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
 ```
18 18
 
... ...
@@ -78,4 +78,5 @@ $ docker volume create --driver local --opt type=nfs --opt o=addr=192.168.1.1,rw
78 78
 * [volume inspect](volume_inspect.md)
79 79
 * [volume ls](volume_ls.md)
80 80
 * [volume rm](volume_rm.md)
81
+* [volume prune](volume_prune.md)
81 82
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
... ...
@@ -12,7 +12,7 @@ Usage:  docker volume inspect [OPTIONS] VOLUME [VOLUME...]
12 12
 Display detailed information on one or more volumes
13 13
 
14 14
 Options:
15
-  -f, --format string   Format the output using the given go template
15
+  -f, --format string   Format the output using the given Go template
16 16
       --help            Print usage
17 17
 ```
18 18
 
... ...
@@ -44,4 +44,5 @@ Example output:
44 44
 * [volume create](volume_create.md)
45 45
 * [volume ls](volume_ls.md)
46 46
 * [volume rm](volume_rm.md)
47
+* [volume prune](volume_prune.md)
47 48
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
... ...
@@ -25,7 +25,7 @@ Options:
25 25
   -q, --quiet          Only display volume names
26 26
 ```
27 27
 
28
-Lists all the volumes Docker knows about. You can filter using the `-f` or `--filter` flag. Refer to the [filtering](#filtering) section for more information about available filter options.
28
+List all the volumes Docker knows about. You can filter using the `-f` or `--filter` flag. Refer to the [filtering](#filtering) section for more information about available filter options.
29 29
 
30 30
 Example output:
31 31
 
... ...
@@ -170,4 +170,5 @@ vol3: local
170 170
 * [volume create](volume_create.md)
171 171
 * [volume inspect](volume_inspect.md)
172 172
 * [volume rm](volume_rm.md)
173
+* [volume prune](volume_prune.md)
173 174
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
... ...
@@ -30,4 +30,5 @@ Remove one or more volumes. You cannot remove a volume that is in use by a conta
30 30
 * [volume create](volume_create.md)
31 31
 * [volume inspect](volume_inspect.md)
32 32
 * [volume ls](volume_ls.md)
33
+* [volume prune](volume_prune.md)
33 34
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
... ...
@@ -47,7 +47,7 @@ Docker networks report the following events:
47 47
    Stream events until this timestamp
48 48
 
49 49
 **--format**=""
50
-   Format the output using the given go template
50
+   Format the output using the given Go template
51 51
 
52 52
 The `--since` and `--until` parameters can be Unix timestamps, date formatted
53 53
 timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
... ...
@@ -33,7 +33,7 @@ available on the volume where `/var/lib/docker` is mounted.
33 33
   Print usage statement
34 34
 
35 35
 **-f**, **--format**=""
36
-  Format the output using the given go template
36
+  Format the output using the given Go template
37 37
 
38 38
 # EXAMPLES
39 39
 
... ...
@@ -103,7 +103,7 @@ $ docker network inspect simple-network
103 103
 
104 104
 # OPTIONS
105 105
 **-f**, **--format**=""
106
-  Format the output using the given go template.
106
+  Format the output using the given Go template.
107 107
 
108 108
 **--help**
109 109
   Print usage statement
... ...
@@ -18,7 +18,7 @@ daemon.
18 18
     Print usage statement
19 19
 
20 20
 **-f**, **--format**=""
21
-    Format the output using the given go template.
21
+    Format the output using the given Go template.
22 22
 
23 23
 # EXAMPLES
24 24