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),