cmd/{ctr,dist}: label can be a verb

Rather than using the more verbose `set-labels` command, we are changing
the command to set labels for various objects to `label`, as it can be
used as a verb. This matches changes in the content store labeling.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2017-07-13 14:36:13 -07:00
parent 8eadcb8c28
commit a8b2254911
No known key found for this signature in database
GPG Key ID: 67B3DED84EDC823F
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import (
) )
var containersSetLabelsCommand = cli.Command{ var containersSetLabelsCommand = cli.Command{
Name: "set-labels", Name: "label",
Usage: "Set and clear labels for a container.", Usage: "Set and clear labels for a container.",
ArgsUsage: "[flags] <name> [<key>=<value>, ...]", ArgsUsage: "[flags] <name> [<key>=<value>, ...]",
Description: "Set and clear labels for a container.", Description: "Set and clear labels for a container.",

View File

@ -54,7 +54,7 @@ var namespacesCreateCommand = cli.Command{
} }
var namespacesSetLabelsCommand = cli.Command{ var namespacesSetLabelsCommand = cli.Command{
Name: "set-labels", Name: "label",
Usage: "Set and clear labels for a namespace.", Usage: "Set and clear labels for a namespace.",
ArgsUsage: "[flags] <name> [<key>=<value>, ...]", ArgsUsage: "[flags] <name> [<key>=<value>, ...]",
Description: "Set and clear labels for a namespace.", Description: "Set and clear labels for a namespace.",

2
cmd/dist/images.go vendored
View File

@ -83,7 +83,7 @@ var imagesListCommand = cli.Command{
} }
var imagesSetLabelsCommand = cli.Command{ var imagesSetLabelsCommand = cli.Command{
Name: "set-labels", Name: "label",
Usage: "Set and clear labels for an image.", Usage: "Set and clear labels for an image.",
ArgsUsage: "[flags] <name> [<key>=<value>, ...]", ArgsUsage: "[flags] <name> [<key>=<value>, ...]",
Description: "Set and clear labels for an image.", Description: "Set and clear labels for an image.",