From a8b225491108b6264aca1afb3f91136411288e9c Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Thu, 13 Jul 2017 14:36:13 -0700 Subject: [PATCH] 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 --- cmd/ctr/labels.go | 2 +- cmd/ctr/namespaces.go | 2 +- cmd/dist/images.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ctr/labels.go b/cmd/ctr/labels.go index 448db1928..4a9a8594c 100644 --- a/cmd/ctr/labels.go +++ b/cmd/ctr/labels.go @@ -9,7 +9,7 @@ import ( ) var containersSetLabelsCommand = cli.Command{ - Name: "set-labels", + Name: "label", Usage: "Set and clear labels for a container.", ArgsUsage: "[flags] [=, ...]", Description: "Set and clear labels for a container.", diff --git a/cmd/ctr/namespaces.go b/cmd/ctr/namespaces.go index fd29cc59b..47e91d602 100644 --- a/cmd/ctr/namespaces.go +++ b/cmd/ctr/namespaces.go @@ -54,7 +54,7 @@ var namespacesCreateCommand = cli.Command{ } var namespacesSetLabelsCommand = cli.Command{ - Name: "set-labels", + Name: "label", Usage: "Set and clear labels for a namespace.", ArgsUsage: "[flags] [=, ...]", Description: "Set and clear labels for a namespace.", diff --git a/cmd/dist/images.go b/cmd/dist/images.go index f8b168dba..21a2c3631 100644 --- a/cmd/dist/images.go +++ b/cmd/dist/images.go @@ -83,7 +83,7 @@ var imagesListCommand = cli.Command{ } var imagesSetLabelsCommand = cli.Command{ - Name: "set-labels", + Name: "label", Usage: "Set and clear labels for an image.", ArgsUsage: "[flags] [=, ...]", Description: "Set and clear labels for an image.",