code: func AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig {
  	return func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig {
  		return command.ResolveAuthConfig(ctx, cli, index)
  	}
  }
docs: // AuthResolver returns an auth resolver function from a command.Cli