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:
parent
8eadcb8c28
commit
a8b2254911
@ -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.",
|
||||||
|
@ -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
2
cmd/dist/images.go
vendored
@ -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.",
|
||||||
|
Loading…
Reference in New Issue
Block a user