1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix typs from go to Go

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
yuexiao-wang 2016-10-18 18:50:11 +08:00
parent cd0e399e06
commit 7dad9d5ce4
28 changed files with 30 additions and 25 deletions

View file

@ -30,7 +30,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes")
return cmd

View file

@ -29,7 +29,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -27,7 +27,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
},
}
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -36,7 +36,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
return cmd
}

View file

@ -32,7 +32,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -37,7 +37,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
return cmd
}

View file

@ -45,7 +45,7 @@ func NewEventsCommand(dockerCli *command.DockerCli) *cobra.Command {
flags.StringVar(&opts.since, "since", "", "Show all events created since timestamp")
flags.StringVar(&opts.until, "until", "", "Stream events until this timestamp")
flags.VarP(&opts.filter, "filter", "f", "Filter output based on conditions provided")
flags.StringVar(&opts.format, "format", "", "Format the output using the given go template")
flags.StringVar(&opts.format, "format", "", "Format the output using the given Go template")
return cmd
}

View file

@ -37,7 +37,7 @@ func NewInfoCommand(dockerCli *command.DockerCli) *cobra.Command {
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -35,7 +35,7 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
}
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
flags.StringVar(&opts.inspectType, "type", "", "Return JSON for specified type")
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")

View file

@ -52,7 +52,7 @@ func NewVersionCommand(dockerCli *command.DockerCli) *cobra.Command {
flags := cmd.Flags()
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -28,7 +28,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
},
}
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
return cmd
}

View file

@ -13,7 +13,7 @@ Get real time events from the server
Options:
-f, --filter value Filter output based on conditions provided (default [])
--format string Format the output using the given go template
--format string Format the output using the given Go template
--help Print usage
--since string Show all events created since timestamp
--until string Stream events until this timestamp

View file

@ -12,7 +12,7 @@ Usage: docker info [OPTIONS]
Display system-wide information
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
```

View file

@ -13,7 +13,7 @@ Return low-level information on one or multiple containers, images, volumes,
networks, nodes, services, or tasks identified by name or ID.
Options:
-f, --format Format the output using the given go template
-f, --format Format the output using the given Go template
--help Print usage
-s, --size Display total file sizes if the type is container
values are "image" or "container" or "task

View file

@ -12,7 +12,7 @@ Usage: docker network inspect [OPTIONS] NETWORK [NETWORK...]
Display detailed information on one or more networks
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
```

View file

@ -12,7 +12,7 @@ Usage: docker node inspect [OPTIONS] self|NODE [NODE...]
Display detailed information on one or more nodes
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
--pretty Print the information in a human friendly format.
```

View file

@ -13,7 +13,7 @@ Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
Display detailed information on one or more plugins
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
```

View file

@ -12,7 +12,7 @@ Usage: docker service inspect [OPTIONS] SERVICE [SERVICE...]
Display detailed information on one or more services
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
--pretty Print the information in a human friendly format.
```

View file

@ -59,6 +59,7 @@ Total reclaimed space: 13.5 MB
* [volume ls](volume_ls.md)
* [volume inspect](volume_inspect.md)
* [volume rm](volume_rm.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](../../tutorials/dockervolumes.md)
* [system df](system_df.md)
* [container prune](container_prune.md)

View file

@ -12,7 +12,7 @@ Usage: docker version [OPTIONS]
Show the Docker version information
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
```

View file

@ -78,4 +78,5 @@ $ docker volume create --driver local --opt type=nfs --opt o=addr=192.168.1.1,rw
* [volume inspect](volume_inspect.md)
* [volume ls](volume_ls.md)
* [volume rm](volume_rm.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](../../tutorials/dockervolumes.md)

View file

@ -12,7 +12,7 @@ Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...]
Display detailed information on one or more volumes
Options:
-f, --format string Format the output using the given go template
-f, --format string Format the output using the given Go template
--help Print usage
```
@ -44,4 +44,5 @@ Example output:
* [volume create](volume_create.md)
* [volume ls](volume_ls.md)
* [volume rm](volume_rm.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](../../tutorials/dockervolumes.md)

View file

@ -25,7 +25,7 @@ Options:
-q, --quiet Only display volume names
```
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.
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.
Example output:
@ -170,4 +170,5 @@ vol3: local
* [volume create](volume_create.md)
* [volume inspect](volume_inspect.md)
* [volume rm](volume_rm.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](../../tutorials/dockervolumes.md)

View file

@ -30,4 +30,5 @@ Remove one or more volumes. You cannot remove a volume that is in use by a conta
* [volume create](volume_create.md)
* [volume inspect](volume_inspect.md)
* [volume ls](volume_ls.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](../../tutorials/dockervolumes.md)

View file

@ -47,7 +47,7 @@ Docker networks report the following events:
Stream events until this timestamp
**--format**=""
Format the output using the given go template
Format the output using the given Go template
The `--since` and `--until` parameters can be Unix timestamps, date formatted
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed

View file

@ -33,7 +33,7 @@ available on the volume where `/var/lib/docker` is mounted.
Print usage statement
**-f**, **--format**=""
Format the output using the given go template
Format the output using the given Go template
# EXAMPLES

View file

@ -103,7 +103,7 @@ $ docker network inspect simple-network
# OPTIONS
**-f**, **--format**=""
Format the output using the given go template.
Format the output using the given Go template.
**--help**
Print usage statement

View file

@ -18,7 +18,7 @@ daemon.
Print usage statement
**-f**, **--format**=""
Format the output using the given go template.
Format the output using the given Go template.
# EXAMPLES