From 0673db449330d9a5cbf14644152015b948499412 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Thu, 29 Dec 2022 11:45:30 +0200 Subject: [PATCH] allow multiple packages for show-tag Signed-off-by: Avi Deitcher --- src/cmd/linuxkit/pkg_showtag.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cmd/linuxkit/pkg_showtag.go b/src/cmd/linuxkit/pkg_showtag.go index 59e0c4a0b..e06f4b4af 100644 --- a/src/cmd/linuxkit/pkg_showtag.go +++ b/src/cmd/linuxkit/pkg_showtag.go @@ -11,11 +11,12 @@ func pkgShowTagCmd() *cobra.Command { var canonical bool cmd := &cobra.Command{ Use: "show-tag", - Short: "show the tag for a package based on its source directory", - Long: `Show the tag for a package based on its source directory. + Short: "show the tag for packages based on its source directory", + Long: `Show the tag for one or more packages based on their source directories. 'path' specifies the path to the package source directory. `, - Args: cobra.ExactArgs(1), + Args: cobra.MinimumNArgs(1), + Example: "linuxkit pkg show-tag path/to/package [path/to/another/package] [path/to/yet/another/package]", RunE: func(cmd *cobra.Command, args []string) error { pkgs, err := pkglib.NewFromConfig(pkglibConfig, args...) if err != nil {