From c7aaed7397df9dc4182595bb47765e7511b5ad1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 17 Feb 2025 19:26:53 +0100 Subject: [PATCH] Update for cobra API change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not _really_ necessary, but let's be consistent with cobra's style. Signed-off-by: Miloslav Trmač --- cmd/skopeo/completions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/skopeo/completions.go b/cmd/skopeo/completions.go index a50fadbc..672abc4b 100644 --- a/cmd/skopeo/completions.go +++ b/cmd/skopeo/completions.go @@ -7,9 +7,9 @@ import ( ) // autocompleteSupportedTransports list all supported transports with the colon suffix. -func autocompleteSupportedTransports(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { +func autocompleteSupportedTransports(cmd *cobra.Command, args []string, toComplete string) ([]cobra.Completion, cobra.ShellCompDirective) { tps := transports.ListNames() - suggestions := make([]string, 0, len(tps)) + suggestions := make([]cobra.Completion, 0, len(tps)) for _, tp := range tps { // ListNames is generally expected to filter out deprecated transports. // tarball: is not deprecated, but it is only usable from a Go caller (using tarball.ConfigUpdater),